i have facility in my website which sends an e-mail to the cleint's
inbox..... i am getting a problem when ever i sends an e-mail.. i tried with
Hotmail and Yahoo, e-mail goes to the "Junk Mail" folder not the actual
inbox....
how i can get e-mail sent the clients inbox not in their "Bulk" or "Junk
Mail" box
thanks
my send e-mail page C# codes are below:
Server.ScriptTi meout = 1000;
SmtpMail.SmtpSe rver = "127.0.0.1" ;
MailMessage mail = new MailMessage();
mail.To = this.TextBox2.T ext;
mail.From = this.TextBox4.T ext;
mail.Subject = this.TextBox1.T ext + " recommends this eOman.gov.om page";
mail.BodyFormat = MailFormat.Html ;
string strBody = this.TextBox1.T ext + "<html><bod y>My Message text starts
from here" +
" <br><br><font color=\"black\" ><a href='" + this.TextBox3.T ext + "'>" +
this.TextBox3.T ext + "</a></font>" +
" <br><br><font color=\"black\" ><hr></font>" +
" <br><font color=\"black\" >My Message ends here.</font></body></html>";
mail.Body = strBody;
try
{
SmtpMail.Send(m ail);
Label4.Text="Th e e-mail has been sent to: "+ mail.To;
}
catch(System.Ex ception ex)
{
Response.Write( ex.Message);
}
inbox..... i am getting a problem when ever i sends an e-mail.. i tried with
Hotmail and Yahoo, e-mail goes to the "Junk Mail" folder not the actual
inbox....
how i can get e-mail sent the clients inbox not in their "Bulk" or "Junk
Mail" box
thanks
my send e-mail page C# codes are below:
Server.ScriptTi meout = 1000;
SmtpMail.SmtpSe rver = "127.0.0.1" ;
MailMessage mail = new MailMessage();
mail.To = this.TextBox2.T ext;
mail.From = this.TextBox4.T ext;
mail.Subject = this.TextBox1.T ext + " recommends this eOman.gov.om page";
mail.BodyFormat = MailFormat.Html ;
string strBody = this.TextBox1.T ext + "<html><bod y>My Message text starts
from here" +
" <br><br><font color=\"black\" ><a href='" + this.TextBox3.T ext + "'>" +
this.TextBox3.T ext + "</a></font>" +
" <br><br><font color=\"black\" ><hr></font>" +
" <br><font color=\"black\" >My Message ends here.</font></body></html>";
mail.Body = strBody;
try
{
SmtpMail.Send(m ail);
Label4.Text="Th e e-mail has been sent to: "+ mail.To;
}
catch(System.Ex ception ex)
{
Response.Write( ex.Message);
}
Comment