The following is the error that I get when verifying ” Send_Photos_Email_NEW.ino” file fromESP32-CAM-Projects-eBook Module 3.
Arduino: 1.8.15 (Linux), Board: “AI Thinker ESP32-CAM”
/home/terry/Desktop/all_espXXXX/ESP32-CAM-eBook-master/Code/Module_3/Send_Photos_Email_NEW/Send_Photos_Email_NEW.ino: In function ‘void smtpCallback(SMTP_Status)’:
Send_Photos_Email_NEW:271:27: error: ‘SMTP_Result {aka struct esp_mail_smtp_send_status_t}’ has no member named ‘timesstamp’
localtime_r(&result.timesstamp, &dt);
^
Multiple libraries were found for “WiFi.h”
Used: /home/terry/snap/arduino/61/.arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/WiFi
Not used: /snap/arduino/61/libraries/WiFi
Multiple libraries were found for “SD.h”
Used: /home/terry/snap/arduino/61/.arduino15/packages/esp32/hardware/esp32/1.0.4/libraries/SD
Not used: /snap/arduino/61/libraries/SD
exit status 1
‘SMTP_Result {aka struct esp_mail_smtp_send_status_t}’ has no member named ‘timesstamp’
I downloaded the code from the eBook Master, I wouldn’t think I’d be getting an error. What’s wrong, Help! Thanks.
Terry
Hi.
Can you tell me the version of the ESP-Mail-Client library that you’re using?
I think there were some library updates, and so the code is no longer compatible with more recent versions.
Go to the Library Manager (Sketch > Include Library > Manage Libraries) search for ESP Mail Client, and downgrade to version 1.3.0.
Let me know if that solves the issue.
Regards,
Sara
Thanks Sara
ESP-Mail_Client is ver 1.6.1 and every time I try to change it, it stays the same. Is there a way to do it unconditionally?
Regards
Terry
I finally got 1.3.0 installed, don’t know what I was doing wrong. Anyway, the code not compiles and verifies.
Thank you for your help, Sara, your always there when someone needs an answer.
Terry
Thanks.
I’m glad I could help.
I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara
I had the same problem and discovered that after making the following two changes:
- Correct the typo by changing “timesstamp” to “timestamp”.
- Cast &result.timestamp from uint_t* to const time_t*.
changes line 273 off the sketch to: localtime_r((const time_t*)&result.timestamp, &dt).
This compile without error with the latest version (2.0.1) of the ESP Mail Client library.
Dave