System.Net.Mail.SmtpException: ‘Failure sending mail.’ – Microsoft Q&A

I am trying to make a simple website but on the password reset page after typing any email address and clicking the password reset button I get an error saying

system.net.mail.smtpexception: ‘error sending mail’

inner exception: unable to read transport connection data: net_io_connectionclosed.

here is my code

using system;using system.collections.generic;using system.linq;using system.web;using system.web.ui;using system.web.ui.webcontrols;using system.data;using system.net;using system.net.mail;using system.drawing;using system.configuration;using system.data.sqlclient;using system.io;using system.threading;

namespace artist_sketch_work{ public partial class forgot password : system.web.ui.page {

}

Exception occurs at:

smtp.send(mm);

any help will be appreciated

See Also:  Mail-Sorting Machines Are Crucial for the U.S. Postal Service - Scientific American

Leave a Reply

Your email address will not be published. Required fields are marked *