Solved

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

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

776 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