By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,440 Members | 1,872 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,440 IT Pros & Developers. It's quick & easy.

e-mail not going to "inbox" rather going to the "Junk Mail" box

P: n/a
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);
}
Mar 15 '08 #1
Share this Question
Share on Google+
1 Reply


P: n/a
This is entirely up to the recipient's ISP, which thinks you are a spammer.
Are you a spammer?


"TalalSaleem" <Ta*********@discussions.microsoft.comwrote in message
news:F4**********************************@microsof t.com...
>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);
}

Mar 15 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.