Hoppa till huvudinnehållet

Send Email - Can't establish SSL/TLS Connection

Kommentarer

4 kommentarer

  • Nelson Dobbs

    I had that same issue, I believe the way I fixed it was to go in to IIS on the server and set up the SMTP E-Mail settings there.  I have the Deliver email to SMTP Server filled out with the Server and port 25 with Authentication Settings set to "Not required".  Email address is blank.

    Nelson

    1
  • Steve Flores

    Thank you. I tried the same steps you listed out, but I'm still getting the same error. Still working on trying to figure out the fix. 

    0
  • Daan Molleman

    I'm having the same issue, so bump

    0
  • Matthew Poirier

    Note that Steve's issue was resolved by setting EnableSSL to false when using port 587 with a Gmail SMTP server:

     { 
     	"EmailSettings": {
          	"Configurations": {
              	"Default": {
                  	"Host": "smtp.gmail.com",
                  	"Port": 587,
                  	"Username": "gmailaccount@gmail.com",
                  	"Password": "password",
                  	"EnableSSL": false           
                  }
              }
          }
      }

    The reason SSL has to be set to false in the above examples is because port 587 does not allow SSL connections - it uses StartTLS. Therefore set EnableSSL to false if using this port. Port 465 on Google SMTP servers support SSL: https://developers.google.com/gmail/imap/imap-smtp 

    Of course, the “ An error occurred while attempting to establish an SSL or TLS connection.” error from mailkit is fairly generic so the above solution may not be applicable to all scenarios.

    For those troubleshooting the different Email Settings please also remember to recycle the Workflow App Pool in IIS (step 5 in our documentation) to ensure changes to the settings are applied.

     

    0

Du måste logga in om du vill lämna en kommentar.