Secure SMTP connection to GMail using ESP8266Wifi Shield

I’m using a SparkFun8266Wifi shield (on a Uno) to connect to Gmail. The serial monitor shows a connection to Wifi then connecting to Gmail as follows:


+IPD,0,167:250-smtp.gmail.com at your service, [79.69.7.129]

250-SIZE 35882577

250-8BITMIME

250-STARTTLS

250-ENHANCEDSTATUSCODES

250-PIPELINING

250-CHUNKING

250 SMTPUTF8

STARTTLS

+IPD,0,30:220 2.0.0 Ready to start TLS

Sending auth login

Return re Gmail Login…

Timeout

Email failed


I’m using TLS and I’ve set less secure apps to On in Gmail. Does the #include <SparkFunESP8266WiFi.h> library support ‘secure client’, if so is the code ‘ESP8266Client espClient;’ as I am using at the moment? If not could you advise me where to look please?

Hi Taunton_Som_UK,

I do not believe the stock AT command firmware that comes on the ESP8266 module on our WiFi shield supports connections to a secure client. The [SparkFun ESP8266 AT Library only supports the [ESP8266 AT Command Set. I do not believe that command set has any support for this application but if you have not read through that documentation, I would recommend doing so.

Most likely, you will need to [Re-Program the ESP8266 module on the WiFi Shield to work for this application. We do not have any documentation or tutorials available to help with this, unfortunately. I would recommend taking a look at the [ESP8266 Arduino Core GitHub Repository and the [ESP8266 Community Forum for help with moving forward with this project.

I hope this information helps point you in the right direction to get the WiFi Shield working for your application.](ESP8266 Arduino - Everything ESP8266)](GitHub - esp8266/Arduino: ESP8266 core for Arduino)](ESP8266 WiFi Shield Hookup Guide - SparkFun Learn)](https://cdn.sparkfun.com/assets/learn_tutorials/4/0/3/4A-ESP8266__AT_Instruction_Set__EN_v0.30.pdf)](https://learn.sparkfun.com/tutorials/esp8266-wifi-shield-hookup-guide#installing-the-esp8266-at-library)