How to configure IIS5 SMTP to send email from my development environment?

I am trying to send an email from an ASP.NET web application using the SmtpClient class. So far, I have provided relay access to 127.0.0.1. I am trying to send test emails to my gmail account. EML files are stuck in the mailroot queue folder. My WinXP firewall is disabled. I do not receive exceptions in the code, but letters are not delivered to the destination address. I also tried other email accounts.

        SmtpClient client = new SmtpClient();
        client.Host = "127.0.0.1";

        MailMessage message = new MailMessage();
        message.To.Add("myemail@gmail.com");
        message.From = "name@domain.com";
        message.Subject = subject;
        message.IsBodyHtml = false;
        message.Body = body;

        client.Send(message);

Here is a snippet from the IIS SMTP log.

Software: Microsoft Internet Information Services 5.1
Version: 1.0
Date: 2009-01-16 18:28:28
Fields: time c-ip cs-method cs-uri-stem sc-status 
18:28:28 127.0.0.1 EHLO - 250
18:28:28 127.0.0.1 MAIL - 250
18:28:28 127.0.0.1 RCPT - 250
18:28:28 127.0.0.1 DATA - 250
18:29:45 127.0.0.1 MAIL - 250
18:29:45 127.0.0.1 RCPT - 250
18:29:45 127.0.0.1 DATA - 250
18:30:37 127.0.0.1 QUIT - 0
+3
source share
5 answers

, , IIS Exchange, . :
1. SMTP node MMC IIS "".
2. "" "" .
3. " " Exchange. ( DNS , , smtp.mydomain.com)

+1

, , - .


-, , 25. , telnet , ( - O , :));

 o auth.smtp.1and1.co.uk 25

( ), 25. , , .

SMTP . URL- . http://www.spamhaus.org/query/bl?ip=217.44.248.144
http://www.sorbs.net/lookup.shtml?217.44.248.144

, - ( , ) , IP- ( ADSL) .


SMTP- SMP- ISP.
1. " SMTP" "" → 2. SMTP- ISP " " (, auth.smtp.1and1.co.uk)
3. , 4. "" " "
5. " " , .

; , SMTP- - uid/pwd POP3/IMAP SMTP, . - .

+1

, , . From MailAddress .

:

message.From = "name@domain.com";

To:

message.From = new MailAddress("name@domain.com");

SMTP :

"IP-:" 127.0.0.1 ( )? , " ". IP-, , SMTP. , 127.0.0.1, , ip. , , Relay Restrictions "All except the list below" . . , , .

, SMTP?

0

, - . .EML, - .

- IIS "iisreset". , , , , . SMTP- .

0

, -

"yahoo.com" : SMTP.

. http://go.microsoft.com/fwlink/events.asp.

(It is mine). I think yahoo should have some kind of protocol? Or are we setting the wrong protocol? Still featured .. Send me an email pls jokenjp@yahoo.com (with a good subject, so I don't think it's spam)

0
source

All Articles