The dev server of Visual Studio does not support SMTP, for that functionality you must deploy your app in IIS.
"The Visual Studio Development Server does not include all of the extra facilities of IIS. For example, like IIS Express, the Visual Studio Development Server does not support SMTP or FTP. If your Web project involves sending email messages, you must
have access to an IIS SMTP virtual server to test email."