Last week I ran into a wall while developing email capabilities for a .NET project that I am working on. The problem? The code was correct. The web.config configuration was correct. Even most of the iis 6 virtual smtp service was configured correctly since classic asp code was emailing quite happily.
What was the problem?
After consulting with other developers in the Zekiah developer's list, they told me to check for permissions. Once I was put on the right direction, I found an entry with the solution to my specific problem.
The problem was that localhost didn't have permission to relay email.
So the solution was to add localhost to it via select the new SMTP Virtual server node and right-click/Properties/Access/Relay
And that solved the problem.
And here is my reference:
http://devlicio.us/blogs/mike_nichols/archive/2008/05/07/configuring-iis...