Solved

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

Posted on 2008-06-26
3
620 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
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

What is Usenet? There are many different opinions on exactly what Usenet is an isn't. Many opinions are incorrect simply out of ignorance. The Wikipedia listing about Usenet does a good job of explaining it, so instead of repeating it all here I wi…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …

867 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now