I need to send event notification emails from ESP32-CAM board using Arduino E-Mail Client Library (GitHub - mobizt/ESP-Mail-Client: ⚡️Arduino E-Mail Client Library to send, read and get incoming Email notification for ESP32, ESP8266, SAMD21 and Raspberry Pi Pico (RP2040) devices. The library also supported other Arduino devices using Clients interfaces e.g. WiFiClient, EthernetClient, and GSMClient.). I tried a Gmail account, but Google recently changed their security requirements. Gmail requires OAuth 2.0 now, which makes it a bit complicated. Most (all) tutorials, e.g. ESP32 Send Emails using SMTP Server: HTML, Text, Attachments (Arduino IDE) | Random Nerd Tutorials, were written before Google made these changes and no longer work. Are there email providers, for which this tutorial still works?
There are examples that you should follow.
Now you need to use app password for Gmail.
In all SMTP examples, read the comments that already described this how to get app password and how to use it with library.
Library works with all SMTP and IMAP servers that complied with rfc guidelines.
Can anyone help me fix this error? I have installed/removed and reinstalled the ESP32 mail client several times.
In file included from c:\Users\Ted\Documents\Arduino\libraries\ESP32_Mail_Client\src/WiFiClientSecureESP32.h:55,
from c:\Users\Ted\Documents\Arduino\libraries\ESP32_Mail_Client\src/ESP32_MailClient.h:38,
from C:\Users\Ted\Documents\Arduino\Motionpic321825\Motionpic321825.ino:24:
c:\Users\Ted\Documents\Arduino\libraries\ESP32_Mail_Client\src/ssl_client32.h:36:10: fatal error: mbedtls/net.h: No such file or directory
36 | #include “mbedtls/net.h”
| ^~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1
What Arduino-ESP32 core version are you working with? (Arduino IDE → Board Manager → esp32)
I am using AI thinker
That doesn’t answer my question. I’m asking for the version number of the Arduino-ESP32 core.
E.g., “2.0.17” or “3.0.11”
Not sure where to find that
2.0.18 is installed at the moment
Arduino-ESP32 version 2.0.18 does not exist. Please post a screenshot of your Arduino IDE where you read the version from.
But you don’t work with an Arduino Nano ESP32 board, right? That core is only for the Nano ESP32. You said you have a “AI thinker” board. Which exact board is that, can you link to it?
Can you take a screenshot of your current Arduino IDE → Tools menu and post it here?
If you can select that board, you must have the esp32 core isntalled. Please search again in your board manager and scroll down or use the search bar to search for “esp32”. I have version 3.1.3 installed.
Funny. I’m also esp32 core 3.1.1 and compilatio of the Send_Text.ino
example code works fine, with the latest “ESP Mail Client” library version 3.4.24 and the AI Thinker ESP32-CAM board selected.
Are you sure your ESP Mail Client is up-to-date? Check in the library manager.
If in doubt, click the “Remove” button on the esp32 core and then install the latest version again. The mbedtls/net.h
file should be part of the ESP32 core. Maybe you had a corrupted download.
Continuing the discussion from Email server easy to use with Arduino E-Mail Client Library:
Only thing I can think of is that arduino is looking in the wrong place for these files? I have a second computer and I am going to remove arduino and reinstall to see if that fixes the problem.