Click here to Skip to main content
15,912,578 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: using password recovery option in asp.net c# Pin
N a v a n e e t h13-Oct-08 2:37
N a v a n e e t h13-Oct-08 2:37 
GeneralRe: using password recovery option in asp.net c# Pin
eyeseetee13-Oct-08 2:38
eyeseetee13-Oct-08 2:38 
AnswerRe: using password recovery option in asp.net c# Pin
eyeseetee13-Oct-08 2:38
eyeseetee13-Oct-08 2:38 
QuestionUrl Redirect Pin
krishnaveer13-Oct-08 2:00
krishnaveer13-Oct-08 2:00 
AnswerRe: Url Redirect Pin
Brij13-Oct-08 2:17
mentorBrij13-Oct-08 2:17 
GeneralRe: Url Redirect Pin
krishnaveer13-Oct-08 2:27
krishnaveer13-Oct-08 2:27 
AnswerRe: Url Redirect Pin
N a v a n e e t h13-Oct-08 2:32
N a v a n e e t h13-Oct-08 2:32 
QuestionASP.NET Mail Pin
Satish_S13-Oct-08 1:42
Satish_S13-Oct-08 1:42 
Hi I have coded an newsletter mailer which send e-mails to the address stored in databases. application working fine but all the mailers are delivered as spam and not going to inbox.

my news letter has nine images and a content inside it, i want to know whther there is any solution to get mail in inbox and not in SPAM folder.

please take a look at this news letter mailer application




_oSqlConn = New SqlConnection(ConfigurationManager.AppSettings("Test"))
            _oSqlConn.Open()
            _oSqlCmd = New SqlCommand("select cMail_Address from Mail_Tbl where bActive=1", _oSqlConn)
            _oSqlCmd.CommandType = CommandType.Text
            _oSqlAdpat.SelectCommand = _oSqlCmd
            _oSqlAdpat.Fill(DT)

            If DT.Rows.Count > 0 Then

                For i As Integer = 0 To DT.Rows.Count - 1
                    mail.To.Add(DT.Rows(i).Item("cMail_Address"))

                Next
                mail.From = New MailAddress("sathimailin@gmail.com")

                mail.Subject = "Test with Image Embed in Mail and Mail Ids from SQL Database"
                'mail.BodyEncoding = System.Text.Encoding.GetEncoding("utf - 8")

                Body = "<table cellpadding="0" cellspacing="0" width="100%" border="0">"
                Body &= "Welcome to www.website.com!!<br><br>Image Embed."
                '<br><img alt="ss" src="cid:imageId">"
                Body &= "<tr bgcolor="#ffffff">"
                Body &= "<td style="font-size:15px;color:#102C5E;padding-top:20px;padding-bottom:10px;" align="center"><img alt="" hspace="0" src="" cid:imageid="" align="middle" border="0" xmlns:cid="#unknown"><br>  An Image Embed in a Page with ASP.NET/VB.NET/C#/SQL  </br></img></td>"
                Body &= "</tr>"
                Body &= "</img></br></br></br></table>"
                'htmlV = AlternateView.CreateAlternateViewFromString(Body, Nothing, "text/html")
                Dim plainview As System.Net.Mail.AlternateView
               
                plainview = System.Net.Mail.AlternateView.CreateAlternateViewFromString(System.Text.RegularExpressions.Regex.Replace(Body, " @<(.|\n)*?>", String.Empty), Nothing, "text/plain")

                htmlV = System.Net.Mail.AlternateView.CreateAlternateViewFromString(Body, Nothing, "text/html")

                imagelink = New LinkedResource(Server.MapPath(".") + "\pic.jpeg", "image/jpeg")
                imagelink.ContentId = "imageId"
                imagelink.TransferEncoding = System.Net.Mime.TransferEncoding.Base64

                mail.AlternateViews.Add(plainview)
                htmlV.LinkedResources.Add(imagelink)
                mail.AlternateViews.Add(htmlV)

                'smtp(configuration)
                smtp.Host = "smtp.gmail.com"
                mail.Priority = MailPriority.High
                smtp.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis
                smtp.Send(mail)
            End If

AnswerRe: ASP.NET Mail Pin
N a v a n e e t h13-Oct-08 2:34
N a v a n e e t h13-Oct-08 2:34 
AnswerRe: ASP.NET Mail Pin
Ashfield13-Oct-08 2:44
Ashfield13-Oct-08 2:44 
QuestionHow to get clients harddisk number or anything a unique value of client? Pin
kuyucakli13-Oct-08 1:36
kuyucakli13-Oct-08 1:36 
AnswerRe: How to get clients harddisk number or anything a unique value of client? Pin
Abhijit Jana13-Oct-08 1:49
professionalAbhijit Jana13-Oct-08 1:49 
GeneralRe: How to get clients harddisk number or anything a unique value of client? Pin
kuyucakli13-Oct-08 1:56
kuyucakli13-Oct-08 1:56 
GeneralRe: How to get clients harddisk number or anything a unique value of client? Pin
Abhijit Jana13-Oct-08 2:26
professionalAbhijit Jana13-Oct-08 2:26 
GeneralRe: How to get clients harddisk number or anything a unique value of client? Pin
kuyucakli13-Oct-08 2:47
kuyucakli13-Oct-08 2:47 
GeneralRe: How to get clients harddisk number or anything a unique value of client? Pin
N a v a n e e t h13-Oct-08 2:50
N a v a n e e t h13-Oct-08 2:50 
GeneralRe: How to get clients harddisk number or anything a unique value of client? Pin
Abhijit Jana13-Oct-08 3:01
professionalAbhijit Jana13-Oct-08 3:01 
GeneralRe: How to get clients harddisk number or anything a unique value of client? Pin
N a v a n e e t h13-Oct-08 3:04
N a v a n e e t h13-Oct-08 3:04 
GeneralRe: How to get clients harddisk number or anything a unique value of client? Pin
kuyucakli13-Oct-08 3:12
kuyucakli13-Oct-08 3:12 
GeneralRe: How to get clients harddisk number or anything a unique value of client? Pin
Abhijit Jana13-Oct-08 2:59
professionalAbhijit Jana13-Oct-08 2:59 
GeneralRe: How to get clients harddisk number or anything a unique value of client? Pin
kuyucakli13-Oct-08 3:14
kuyucakli13-Oct-08 3:14 
GeneralRe: How to get clients harddisk number or anything a unique value of client? Pin
Abhijit Jana13-Oct-08 3:38
professionalAbhijit Jana13-Oct-08 3:38 
GeneralRe: How to get clients harddisk number or anything a unique value of client? Pin
kuyucakli13-Oct-08 3:54
kuyucakli13-Oct-08 3:54 
GeneralRe: How to get clients harddisk number or anything a unique value of client? Pin
Abhijit Jana13-Oct-08 3:59
professionalAbhijit Jana13-Oct-08 3:59 
GeneralRe: How to get clients harddisk number or anything a unique value of client? Pin
kuyucakli13-Oct-08 4:10
kuyucakli13-Oct-08 4:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.