Please use the example code below in ASP.NET. It always works on all our Windows servers (2003 & 2008).
http://support.microsoft.com/kb/555287
==================================================================================
host=”mail.yourdomainname.com”
userName=”[email protected]”
password=”password”/>
=============================================================================================================
]]>