View Single Post
  #4 (permalink)  
Old January 7th, 2007, 11:47 AM
englere englere is offline
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The SMTP service isn't used by ASP.NET to deliver email. It uses CDOSYS which is included with Windows. It normally figures out how to locate the proper SMTP server to handle your outgoing mail (it can locate MS Exchange automatically, but I'm not sure about other SMTP servers). You can always hard-code the specific name of the SMTP server handling your web server.

In your case it looks like you gave it the name of your local SQL Server (which likes parens). The name of your web server does not have parens. If you change it to "localhost" you should be happy.

Some SMTP servers want you to authenticate with them (but most do not since they only accept outgoing mail from their local network, which includes your web server):
http://www.codeproject.com/dotnet/Sy..._SMTP_AUTH.asp

Eric