ASP.NET 2.0 and IIS SMTP Server Setup
I know, I know, Everyone and their dog has one of these (Blog posts about IIS SMTP Setup). So of course I couldn't leave my fifi (my dog (virtual of course(made up for the story))) out.
I have been messing around with email alerts from all my ASP.NET 2.0 Applications of course and of course I love the IIS server piece of Windows xp - 200x. One thing that has always beguiled (had to look up that word to make sure proper use) me is the SMTP server. Now all of you Windows Web Masters (System Administrators of the Web) are going to roll your eyes at me. That's cool this post is mostly a reminder to me.
When Setting up ASP.NET 2.0 Web Apps in SMTP Here is the configuration you want to put into your web.config.
Make sure the <network host="the IP address of the server not localhost or 127.0.01" />for whatever reason and I am sure there is a good one this does not work.
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from="esupport@yourcompany.com">
<network host="your IP address" port="25" userName=you@yourcompany.com/>
</smtp>
</mailSettings>
</system.net>
SMTP Side Make sure you setup Relay to just the IP address of your server and you could add the localhost.
All will work and the world can now be spammed by another IIS Server.