T
TalalSaleem
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.ScriptTimeout = 1000;
SmtpMail.SmtpServer = "127.0.0.1";
MailMessage mail = new MailMessage();
mail.To = this.TextBox2.Text;
mail.From = this.TextBox4.Text;
mail.Subject = this.TextBox1.Text + " recommends this eOman.gov.om page";
mail.BodyFormat = MailFormat.Html;
string strBody = this.TextBox1.Text + "<html><body>My Message text starts
from here" +
" <br><br><font color=\"black\"><a href='" + this.TextBox3.Text + "'>" +
this.TextBox3.Text + "</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(mail);
Label4.Text="The e-mail has been sent to: "+ mail.To;
}
catch(System.Exception 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.ScriptTimeout = 1000;
SmtpMail.SmtpServer = "127.0.0.1";
MailMessage mail = new MailMessage();
mail.To = this.TextBox2.Text;
mail.From = this.TextBox4.Text;
mail.Subject = this.TextBox1.Text + " recommends this eOman.gov.om page";
mail.BodyFormat = MailFormat.Html;
string strBody = this.TextBox1.Text + "<html><body>My Message text starts
from here" +
" <br><br><font color=\"black\"><a href='" + this.TextBox3.Text + "'>" +
this.TextBox3.Text + "</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(mail);
Label4.Text="The e-mail has been sent to: "+ mail.To;
}
catch(System.Exception ex)
{
Response.Write(ex.Message);
}