probably several hundred logs and a failure
pattern has started to emerge.
For some reason I latched on to 465 with SSL
as the most successful but decided to give 587
without SSL. That didn't work so tried going back
to 465 and now that wouldn't work. I erased,
re-flashed thecESP32 and 465 started working again.
Appears that doing a hard-reset on the ESP32 didn't
clear out all previous information or ??
One observation is that even when I get 465 with SSL
working sending test logs every minute or every hour
always seems to be successful. If I go to a 12
hour or 24 hour email send period then things stop working.
Most common error is 220 server not found.
I read through this information about Gmail's session
limits
https://developers.google.com/gmail/ima ... gth limits
Sounds to me that the ESP32 would need go through theGmail POP sessions are limited about to 7 days.
Gmail IMAP sessions are limited to about 24 hours.
If the session was authenticated using OAuth credentials,
it's limited to about the validity period of the access
token used (usually 1 hour). A session in this context
is one continuous TCP connection.
When the time elapses and the session expires,
Gmail closes the connection with a message saying that
the session expired. After that, the client can reconnect,
authenticate again, and continue. If using OAuth, make
sure that the access token used is valid (if you try to
use an access token older than 1 hour, it might be invalid).
authentication process every time if sending emails after
an hour has passed. But,surely it can cope with that?
I think I must be missing something important is setting
up Gmail on a ESP32 using uMail. Any suggestions?
Would I be more successful using a Pyboard-D for this quite
demanding task?