DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Email not sending

Sort:
You are not authorized to post a reply.





Growing Member





    I am looking a two servers. Both configured the same, as far as I can see.

    Server One: DNN 9.10.2

    ServerTwo: DNN 9.13.2

    Server One has no problems.

    Server Two fails to send test email:

    AbsoluteURL:/API/PersonaBar/ServerSettingsSmtpHost/SendTestEmail

    DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke

    ExceptionGUID:468312ed-f01f-4d85-a3d7-f60bf04c9242

    AssemblyVersion:

    PortalId:-1

    UserId:-1

    TabId:-1

    RawUrl:

    Referrer:

    UserAgent:

    ExceptionHash:UPlHF73t/GGpNtFq7LermfBUt9Y=

    Message:Unable to read data from the transport connection: net_io_connectionclosed.

    StackTrace:

       at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine)
       at System.Net.Mail.SmtpReplyReaderFactory.ReadLines(SmtpReplyReader caller, Boolean oneLine)
       at System.Net.Mail.SmtpReplyReaderFactory.ReadLine(SmtpReplyReader caller)
       at System.Net.Mail.CheckCommand.Send(SmtpConnection conn, String& response)
       at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, MailAddress from, Boolean allowUnicode)
       at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, Boolean allowUnicode, SmtpFailedRecipientException& exception)
       at System.Net.Mail.SmtpClient.Send(MailMessage message)

     

    Using a Powershell script I can send email, from Server Two, using the same SMTP server and credentials.

    Any suggestions appreciated.

     

    Regards,

    Declan Ward






    New Around Here





      I think you have to be more specific here, whether it is a SMTP server in the MS365 cloud. Try to checkout the following issue on github:
      https://github.com/dnnsof...Platform/issues/5870

      Maybe this is your problem?

      Regards, Wolfgang





      Growing Member





        To be more specific, OAuth is not involved. This is to an SMTP server at blacknight.com. Basic authentication using a username and password. 

        Outlook can send and receive on the same account and, as I said above, a Powershell script can also send mail to the SMTP server from the problematic server, Server Two.






        Growing Member





          Setting SMTP server to 127.0.0.1 , anonymous authentication and running a local SMTP server (IIS6) also fails to send a test email with the same error:

          Message:Unable to read data from the transport connection: net_io_connectionclosed.





          Growing Member





            Interesting; when I switched to SMTP Server Mode > Global and entered the same server address and credentials it all started working as it should. Using Global is not an issue for me as I only run one site per DNN instance.





            Veteran Member





              So. it was only an issue when using a portal-specific setting?  This sounds like a bug.  What if you switched back to the portal setting? Does it still not work correctly?  

              You are not authorized to post a reply.

              These Forums are dedicated to the discussion of DNN Platform.

              For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

              1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
              2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
              3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
              4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
              5. No Flaming or Trolling.
              6. No Profanity, Racism, or Prejudice.
              7. Site Moderators have the final word on approving / removing a thread or post or comment.
              8. English language posting only, please.

              Would you like to help us?

              Awesome! Simply post in the forums using the link below and we'll get you started.

              Get Involved