Sample code in ASP.NET for sending mail via a web form
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
==================================================================================
</system.web>
<system.net>
<mailSettings>
<smtp from="[email protected]">
<network port="587"
defaultCredentials="false"
host="mail.yourdomainname.com"
userName="[email protected]"
password="password"/>
</smtp>
</mailSettings>
</system.net>
=============================================================================================================
No comments