Created an another component using AI for ESP32 that a single macro call enables direct email dispatch via SMTP (SSL/TLS) for simple notifications like sensor reading or system alerts. Ensure that ESP32 has an active WiFi connection before calling the macro.
Input Parameters
HOST_ADDRESS: SMTP server (e.g., "smtp.gmail.com").
PORT: SSL/TLS port number. (465 for Gmail)
USER_NAME: Full sender email address. (e.g., "
yourname@gmail.com")
PASSWORD: 16-character Google App Password (e.g.,"xgdihlrtexusksta") not login password
DESTINATION: Recipient list (e.g., "
a@mail.com,
b@mail.com")
SUBJECT: The title of the email. (e.g., “Temperature Alert")
MSG_LINE 1 - 4 : Four lines for your data strings (128B per line)
Please note that I have specifically tested this component only on the ESP32 Wroom 32 module with Gmail account