Add your credentials to the web.config. I did not use gmail in this portion because the use of gmail is blocked in my workplace and it still works perfectly.
<add key="GmailUserName"value="[email protected]"/><add key="GmailPassword"value="yourPassword"/><add key="GmailHost"value="yourServer"/><add key="GmailPort"value="yourPort"/><add key="GmailSsl"value="chooseTrueOrFalse"/><!--Smptp Server (confirmations emails)-->
Make necessary changes to your Account Controller. Add the following highlighted code.