Using my gmail account, I put the code in properly and Im not getting any errors, the page comes up fine, but there are no emails that are going though. I tried all your troubleshooting tips. Im getting an error on this line, it just says failure sending mail:
Code:
mySmtpClient.Send(myMessage);
Here my web.config (I put user/pass in asterisks just so its not out in the web

):
Code:
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<pages theme="Monochrome">
<controls>
<add tagPrefix="Wrox" tagName="Banner" src="~/Controls/Banner.ascx"/>
</controls>
</pages>
<compilation debug="true" targetFramework="4.0"/>
</system.web>
<system.net>
<mailSettings>
<smtp deliveryMethod="Network" from ="Dan L <***@gmail.com>">
<network enableSsl ="true" userName="***@gmail.com" password="****" host="smtp.gmail.com"/>
</smtp>
</mailSettings>
</system.net>
</configuration>