Solved

Fail to send email to hotmail account through SMTP service of IIS in asp.net

Posted on 2008-06-26
3
633 Views
Last Modified: 2009-07-29
In asp.net, I send email through SMTP service of IIS 6.  When I sent emails to gamil or yahoo account, I can receive them. But When I sent email to hotmail account, I cannot receive it in 99% situation. Only about 1% of chances I can get it in hotmail.

Please help, thanks

The following is my asp.net code:
            System.Web.Mail.MailMessage Email = new System.Web.MailMailMessage();
            Email.From = TextBoxEmailFrom.Text;
            Email.To = TextBoxEmailTo.Text;            
            Email.Subject = TextBoxEmailSubject.Text;
            Email.Body = TextBoxEmailBody.Text;
            Email.Priority = MailPriority.High;
            Email.BodyFormat = MailFormat.Text;
            System.Web.Mail.SmtpMail.SmtpServer.Insert(0, "127.0.0.1");
            System.Web.Mail.SmtpMail.Send(Email);
0
Comment
Question by:BrainyYack1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 37

Accepted Solution

by:
meverest earned 500 total points
ID: 21892555
Hi,

first of all, if this script is available to the internet, you have effectively published an open relay spam engine since anyone can use the form to send email to any address.

in any case, you need to take a look at the smtp service logs to determine the reason that hotmail is not receiving the outbound msgs.

by default, the logs are stored at %systemroot%\system32\logfiles\smtpsvc1\

cheers.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There was an incident about the POP3 issue for the double read receipts and delivery receipts in Exchange 2013.  There was huge research been done and found solution for the duplicate mails. Especially when the user gets  duplicate mails.
When you’re making plans to join the modern business race, you should analyze various details that may affect your results. Nowadays, millions of businesses are trying to grow into established and appreciated professional enterprises.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question