In case you are still working on this. I had a problem where my email connection would continuously time out. I am using VS2013, though I am not sure if that is the problem.
mySmtp client would not work with the credentials set in web.config. I had to sent them manual using
mySmtp.Credentials = new System.Net.NetworkCredential("
[email protected]", "password")
The port, etc could be set in web.config but the network credentials I had to configure like this and it worked for me using gmail.
(Though with gmail you also have to follow some steps to set your account up to do this, if you try it once, google will send you an email with instructions for how to set it up properly)