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?