Page 1 of 1

email config error in the setting page

PostPosted: Mon Sep 17, 2018 3:52 pm
by avanekar02
error.png
error.png (30.83 KiB) Viewed 3791 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

Re: email config error in the setting page

PostPosted: Mon Sep 17, 2018 11:42 pm
by ryancyq
Hi, can you check if Log.txt contains any email related errors?

Re: email config error in the setting page

PostPosted: Tue Sep 18, 2018 3:24 am
by avanekar02
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 ---



***********************************************

Re: email config error in the setting page

PostPosted: Tue Sep 18, 2018 4:10 am
by ryancyq
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.

Re: email config error in the setting page

PostPosted: Tue Sep 18, 2018 9:23 am
by avanekar02
same configuration runs perfectly for SMTP Probe app

can you please provide the steps for the same if any

regards
Anwar

Re: email config error in the setting page

PostPosted: Tue Sep 18, 2018 11:17 am
by ryancyq
If SMTP probe app works for you, please share the following:

- SMTP server url and port
- aspnetzero application url and port

Re: email config error in the setting page

PostPosted: Wed Sep 19, 2018 6:55 am
by avanekar02
3535 : SMTP PORT
smtpout.asia.secureserver.net

Re: email config error in the setting page

PostPosted: Wed Sep 19, 2018 7:56 am
by alper
Disable your Antivirus and Firewall ... Try again! https://social.msdn.microsoft.com/Forum ... etfxnetcom

otherwise I guess you need to set SSL check. only few servers don't accept SSL.

Re: email config error in the setting page

PostPosted: Thu Sep 20, 2018 3:25 am
by avanekar02
Hello

disabled anti virus but problem still persists, just using send test email from emai(smpt) under setting in admin.

thanks
Anwar