Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

email config error in the setting page #5605


User avatar
0
avanekar02 created

[attachment=0:2fietkei]error.png[/attachment:2fietkei]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


10 Answer(s)
  • User Avatar
    0
    ryancyq created
    Support Team

    Hi, can you check if Log.txt contains any email related errors?

  • User Avatar
    0
    avanekar02 created

    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 ---


  • User Avatar
    0
    ryancyq created
    Support Team

    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.

  • User Avatar
    0
    avanekar02 created

    same configuration runs perfectly for SMTP Probe app

    can you please provide the steps for the same if any

    regards Anwar

  • User Avatar
    0
    ryancyq created
    Support Team

    If SMTP probe app works for you, please share the following:

    • SMTP server url and port
    • aspnetzero application url and port
  • User Avatar
    0
    avanekar02 created

    3535 : SMTP PORT smtpout.asia.secureserver.net

  • User Avatar
    0
    alper created
    Support Team

    Disable your Antivirus and Firewall ... Try again! <a class="postlink" href="https://social.msdn.microsoft.com/Forums/en-US/17e3f2c9-c3f8-4531-b251-11fafe46ec14/smtpclientsend-problem-results-in-quotan-established-connection-was-aborted-by-the-software-in?forum=netfxnetcom">https://social.msdn.microsoft.com/Forum ... etfxnetcom</a>

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

  • User Avatar
    0
    avanekar02 created

    Hello

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

    thanks Anwar

  • User Avatar
    0
    ismcagdas created
    Support Team

    same configuration runs perfectly for SMTP Probe app

    @avanekar02 do you run SMTP Probe on the same server with your web app ? Your web app server might not have access to smtp server.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Closing due to inactivity. Please reopen if you are still having this problem.