After going through your question, I've found that you just forgot to add an email setting. Add the below lines in your web.config. Make sure to change the hostname, port, username, and password.
<system.net>
<mailSettings>
<smtp deliveryMethod="Network">
<network host="host address" port="12345" userName="username here" password="password here"/>
</smtp>
</mailSettings>
</system.net>
Top comments (0)