Solved

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

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Object Oriented Best Practice 5 35
Expando 4 36
Limiting string to two deciamls 18 37
ASP.Net Session State alternatives 3 33
What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

744 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

10 Experts available now in Live!

Get 1:1 Help Now