- This topic has 6 replies, 3 voices, and was last updated 3 years, 9 months ago by .
- You must be logged in to reply to this topic.
Home › Forums › The libraries hosted on the site › EMailSender send email with attachments › port 587 with ssl ANS TLS not working
Tagged: SMTP TLS 587
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
Hi Pim,
Wich platform do you use??
Bye Renzo
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!
Hi majorrens,
GMail and other services that need TSL can’t work with Arduino UNO or Mega, you must use not encrypted service like sendgrid, refer to the article
Send email with attachments (v2.x library): Arduino Ethernet – 1
Bye Renzo
Got it. That is what I suspected. I am also getting an Arduino MKR WiFi 1010. Will that be able to work with gmail?
Thanks!
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
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
Altro
3D Printer 3D printer upgrade ABB Arduino Arduino IDE Arduino SAMD boards Aurora AWS CNC Cyclone PCB Factory Cyclone PCB Factory how to build It Display E32 E70 EByte esp01 esp32 esp8266 File System Firmware i2c Library LoRa MicroPython Milling PCB My PCB Networking PCB pinout Power saving Programming board Raspberry Pi REST API RF rp2040 SD Card Sensors Sleep and Wake UP SPI STM32 Storage devices Tutorial Web Server Wemos D1 mini WiFi