Support forum for ASP.NET Zero (https://aspnetzero.com/).
By avanekar02
#31963
error.png
error.png (30.83 KiB) Viewed 1163 times
hello

i am unable to send email, this is setup in the setting for the Email(SMTP) tab, please note i have installed smtp probe and it send email successfully.

can you please let me know what i have not done.

regards
Anwar
By avanekar02
#31967 here is the section for the email related error

**********************************************
ERROR 2018-09-18 08:50:33,244 [7 ] nHandling.AbpApiExceptionFilterAttribute - Failure sending mail.
System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: An established connection was aborted by the software in your host machine. ---> System.Net.Sockets.SocketException: An established connection was aborted by the software in your host machine
at System.Net.Sockets.Socket.BeginReceive(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags, AsyncCallback callback, Object state)
at System.Net.Sockets.NetworkStream.BeginRead(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
--- End of inner exception stack trace ---
at System.Net.Sockets.NetworkStream.BeginRead(Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state)
at System.Net.BufferedReadStream.ReadAsyncResult.Read(Byte[] buffer, Int32 offset, Int32 count)
at System.Net.BufferedReadStream.BeginRead(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)
at System.Net.Mail.SmtpReplyReaderFactory.ReadLinesAsyncResult.Read()
at System.Net.Mail.SmtpReplyReaderFactory.ReadLinesAsyncResult.Read(SmtpReplyReader caller)
at System.Net.Mail.CheckCommand.BeginSend(SmtpConnection conn, AsyncCallback callback, Object state)
at System.Net.Mail.SendMailAsyncResult.SendMailFrom()
at System.Net.Mail.SmtpTransport.BeginSendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, AsyncCallback callback, Object state)
at System.Net.Mail.SmtpClient.ConnectCallback(IAsyncResult result)
--- End of inner exception stack trace ---



***********************************************
By ryancyq
#31968 It seems that your email configuration is incorrect.

Have you installed/configured a SMTP server on your machine at Port 80?

It is unusual to use port 80 for your SMTP port. If you are running aspnetzero on the same machine, port 80/433 should be used for your web application instead of SMTP server.