Unable to send email using 3rd party server ( IIS 7, Windows Server 2008, ASP.NET )
Posted
by Reed
on Stack Overflow
See other posts from Stack Overflow
or by Reed
Published on 2009-07-28T07:06:59Z
Indexed on
2010/04/02
21:03 UTC
Read the original article
Hit count: 379
Hello All,
I am using IIS 7 on Server 2008.
I just tried migrating my app from an older platform - everything works fine, except the email feature.
This is my config:
< mailSettings >
< smtp from="[email protected]" deliveryMethod="Network" >
< network host="mail.xyz.com" port="25" userName="[email protected]" password="123" /> < / smtp >
< /mailSettings >
Whenever I need to send an email I use:
SmtpClient smtp = new SmtpClient();
smtp.Send(email);
The funny thing is I get absolutely no errors, however the email is never sent.
The outbound firewall ruleset allows SMTP traffic.
Any idea what I did wrong?
© Stack Overflow or respective owner