Hi All...
Ok, this is reaching quite high annoying frustration levels.. I'm trying to send an email and I have looked all over google. All sites found agree that I should:
1 - Configure IIS using the localhost to relay emails.
2 - Use either SmptMail with (or without) MailMessage
I've done exactly what they told me to, yet when I test it, I send an email to myself and I get nothing. No error and no email. Grrrr! What am I missing?
I have Windows 2000 and .NET 2002, and this is what I did:
1 - On the "Default SMTP Virtual" properties, I went to Authentication and made sure only the Anonymous access checkbox was selected. Then, I went to Relay, and typed in the 127.0.0.1 IP address (just like they said).
2 - To send the email, I have the code:
I press the button where the code is and nothing happens. I have tripple, quadruple and quintuple check the address and all the settings. Everything is in place, and I sill get no email.
What am I missing?
Thanks.
JC
_________________________________
I think, therefore I am. [Rene Descartes]
Ok, this is reaching quite high annoying frustration levels.. I'm trying to send an email and I have looked all over google. All sites found agree that I should:
1 - Configure IIS using the localhost to relay emails.
2 - Use either SmptMail with (or without) MailMessage
I've done exactly what they told me to, yet when I test it, I send an email to myself and I get nothing. No error and no email. Grrrr! What am I missing?
I have Windows 2000 and .NET 2002, and this is what I did:
1 - On the "Default SMTP Virtual" properties, I went to Authentication and made sure only the Anonymous access checkbox was selected. Then, I went to Relay, and typed in the 127.0.0.1 IP address (just like they said).
2 - To send the email, I have the code:
Code:
SmtpMail.SmtpMailServer = "localhost";
SmtpMail.Send(from, to, subject, body);
What am I missing?
Thanks.
JC
_________________________________
I think, therefore I am. [Rene Descartes]