?
Solved

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

Posted on 2008-06-26
3
Medium Priority
?
639 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 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Lync server 2013 or Skype for business Backup Service Error ID 4049 – After File Share Migration
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.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month15 days, 8 hours left to enroll

743 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