port 587 with ssl ANS TLS not working

Home Forums The libraries hosted on the site EMailSender send email with attachments port 587 with ssl ANS TLS not working

Tagged: 

Viewing 4 reply threads
  • Author
    Posts
    • #9986
      Pim
      Participant

        Hi Renzo,

         

        I tried to setup for my provider. Connection failed. My provider uses port 587 for all encryption types STARTTLS, SSL and TLS.

        Any suggestion what I can do to start with TLS as preference?

         

        Kind regards,

         

        Pim

      • #9987
        Renzo Mischianti
        Keymaster

          Hi Pim,
          Wich platform do you use??
          Bye Renzo

        • #10108
          mjorrens
          Participant

            I am having the same problem.

            I have an “Arduino Uno Wifi Rev2” board.

            I am trying to use Gmail but I have also tried Yahoo and Office365.

            I have confirmed SMTP works on my laptop by creating a quick program in Visual Studio 2019 (Windows 10). In that test program, I am unable to send emails on port 465 but emails do work on port 587. This is the case with gmail, yahoo and Office365.

            I have used the same settings on Arduino but consistently get a “timeout” when trying to send an email. WiFi connects fine.

            I did have to change the includes to this for your basic send example:

            #include <EMailSender.h>
            #include <WiFiNINA.h>
            #include <UIPEthernet.h>

            My constructor is:

            EMailSender emailSend(“[my email]@gmail.com”, “[my password]”, “[my email]@gmail.com”, “[my name]”, “smtp.gmail.com”, 587);

            Thanks!

          • #10111
            Renzo Mischianti
            Keymaster

              Hi mjorrens,
              Yes, that device is fantastic, I’ve used also esp8266 and esp32, but MKR WiFi 1010 is very powerful.

              You can refer this article
              Send email with attachments: Arduino SAMD boards (WiFiNINA) – 3

              But Arduini UNO work with sendgrid if you need.

              Bye Renzo

            • #10113
              mjorrens
              Participant

                Great! Perhaps remove reference to the Arduino UNO WiFi Rev.2 in that article or add a note that it will not work with gmail.

                I will let you know how it goes with the MKR Wifi 1010.

                Marc

            Viewing 4 reply threads
            • You must be logged in to reply to this topic.
            Exit mobile version