Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / March 2008

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TalalSaleem - 15 Mar 2008 14:01 GMT
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);
            }
Michael A. Covington - 15 Mar 2008 16:14 GMT
This is entirely up to the recipient's ISP, which thinks you are a spammer.
Are you a spammer?

>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
[quoted text clipped - 35 lines]
> Response.Write(ex.Message);
> }

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.