Dear Sir
I study your ESP32-CAM course. Today I had compile error on example code ” Motion_Detector_photo_Email_new.ino”. Compile error message is “‘SMTP_Result {aka struct esp_mail_smtp_send_status_t}’ has no member named ‘timesstamp’ ”
Please inform me how to fix it.
In addition, Motion_Detect_Photo_Email. ino also acts every 1 sec regardless sensor. I wonder if the code is ok or not.
K.H.LEE
Thanks your quick reply.
I use esp mail client 1.5.7. that was downloaded from esp-cam ebook v1.2.
K.H.LEE
Hi.
I just tried the code and it compiles successfully.
You need to use ESP32 Mail Client Libary not ESP Mail Client.
I’m using ESP32 Mail Client library version 2.1.6
ESP32 boards installation version 1.0.6
Regards,
Sara
Dear Sara
According to your instruction, I changed #include <ESP_Mail_Client.h> to <ESP32_MailClient.h> but the other error was come as like ” ‘SMTSession’ does not name a type”.
Original code was downloaded from your ESP32-CAM course. I did not change anything. Just compiled.
In case of Motion_Detector_Photo_Email.ino, compile is OK but Motion_Detector_Photo_Email_NEW.ino has compile error.
Please check again “Motion_Detector_Photo_Email_NEW.ino”
K.H.LEE
Hi.
You don’t need to change anything in the code. It works as it is.
But, when installing the libraries, you installed the wrong one.
Please go to Sketch > Library > Manage Libraries and install the ESP32_Mail_Client Library.
Uninstall the ESP_Mail_Client library.
You don’t need to change anything in the code provided. It will work as it is if you have the ESP32_Mail_Client library installed.
Regards,
Sara
Sara
i have the same problem. I installed the ESP32_mail_client Library, version 2.1.6 as you say, but now I get “ ESP_Mail_Client.h; No Such file or directory” when I try to compile.
I tried changing the “#include <ESP_Mail _Client.h>. To ESP32….. I get the same error.
Ralph Sorensen