Comments on: ESP32-CAM: Take and Send Photos via Email using an SMTP Server https://randomnerdtutorials.com/esp32-cam-send-photos-email/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Mon, 17 Mar 2025 12:00:07 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: julien https://randomnerdtutorials.com/esp32-cam-send-photos-email/#comment-1017328 Mon, 17 Mar 2025 12:00:07 +0000 https://randomnerdtutorials.com/?p=98272#comment-1017328 Hi Sara Santos,
I’m trying to use your code, and the compiler is returning errors.

It says that it has not been assigned.
WRITE_PERI_REG
+ other errors

I also have a question about your code.
Aside from sending emails, is it possible to view the camera remotely at any time? Is there an interface provided for the camera?

I installed CameraWebServer on Arduino ID, and it works very well.
I wanted to know if it’s possible to integrate your code into this code?
To have both functions: view at any time and send emails twice a day, morning and evening.

Thank you in advance for your feedback.

]]>
By: Bruce MacIntyre https://randomnerdtutorials.com/esp32-cam-send-photos-email/#comment-996614 Thu, 02 Jan 2025 18:31:11 +0000 https://randomnerdtutorials.com/?p=98272#comment-996614 I tried the 3.0.7 and I still get the MBED missing file error.
I can” expect you to go back and worry about the old version off the software. I’ll make the changes to the new sketch and give that a try. Many thanks to your attention to this.
Bruce

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-cam-send-photos-email/#comment-996549 Thu, 02 Jan 2025 10:27:59 +0000 https://randomnerdtutorials.com/?p=98272#comment-996549 In reply to Bruce MacIntyre.

Hi.
Try downgrading the ESP32 boards to version 3.0.7.
Let me know if that fixes the issue.
Regards,
Sara

]]>
By: Bruce MacIntyre https://randomnerdtutorials.com/esp32-cam-send-photos-email/#comment-996393 Wed, 01 Jan 2025 19:24:34 +0000 https://randomnerdtutorials.com/?p=98272#comment-996393 So Sorry!
I just noticed that I was using an old version of the CAM program with “ESP32_MailClient.h”. I didn’t realize that the current program example uses different libraries.
I’ll update and try the new program and see how it goes.

]]>
By: Bruce MacIntyre https://randomnerdtutorials.com/esp32-cam-send-photos-email/#comment-996203 Tue, 31 Dec 2024 20:58:24 +0000 https://randomnerdtutorials.com/?p=98272#comment-996203 Hey, thanks for the quick response.
IDE 1.8.19 (board:AI Thinker)
ESP32 espressive 3.1.0-RC3
ESP32_MailClient 3.4.23
Anything else?

]]>
By: Sara Santos https://randomnerdtutorials.com/esp32-cam-send-photos-email/#comment-996167 Tue, 31 Dec 2024 17:43:26 +0000 https://randomnerdtutorials.com/?p=98272#comment-996167 In reply to Bruce MacIntyre.

Hi.
That issue is related to some incompatibility between the AsyncWebServer library and the ESP32 core version.
Are you using VS Code or Arduino IDE?
Can you tell me the version of the libraries you’re using and the version of the ESP32 core?
Regards,
Sara

]]>
By: Bruce MacIntyre https://randomnerdtutorials.com/esp32-cam-send-photos-email/#comment-995965 Mon, 30 Dec 2024 23:43:29 +0000 https://randomnerdtutorials.com/?p=98272#comment-995965 I moved all my software to a new linux computer and reinstalled all the libraries. This sketch used to work fine, but recently my esp32 cam stopped working so I bought a new one. Now I get a compile error “Mbedtls/net.h” not found. Any suggestions?
P.S. I’m still amazed at all the tutorials you have. I need to check and see if you have any new books that I missed. You and Rui are the best sources for my projects. Thanks again!

]]>
By: Juergen https://randomnerdtutorials.com/esp32-cam-send-photos-email/#comment-972193 Tue, 15 Oct 2024 11:20:47 +0000 https://randomnerdtutorials.com/?p=98272#comment-972193 Dear Sara, dear Rui,
the code works ok, it takes two times a day a photo, BUT: the time synced with NTP does not work as expected:
I set the NTP time to UTC + 1h (Germany) plus 1h daylight correction:
config.time.ntp_server = F(“de.pool.ntp.org,pool.ntp.org,time.nist.gov”); //
config.time.gmt_offset = 1; // für uns nur eine Stunde
config.time.day_light_offset = 1;
HOWEVER, when programmed to take a photo at 16:00, it always makes the photo at 16:59.
Do you have an idea why this happens?

]]>
By: Juergen https://randomnerdtutorials.com/esp32-cam-send-photos-email/#comment-961974 Fri, 27 Sep 2024 10:39:12 +0000 https://randomnerdtutorials.com/?p=98272#comment-961974 In reply to Juergen.

Dear Sara, dear Rui,
I managed it all by myself. Sorry for asking, without having tried everything.
First thing was to get the actual time within the main loop.
Then extract the actual hour as string, convert it into an integer using the function atoi (hour = atoi(hourstr);) and finally program a scheduler to trigger a photo and send it:
if ((hour == 6) && (done == false)) {
capturePhotoSaveLittleFS();
sendPhoto();
done = true;}
The boolean done blocks multiple photos.
Again, thank you very much for the initial code!
Best regards, Juergen

]]>
By: Juergen https://randomnerdtutorials.com/esp32-cam-send-photos-email/#comment-961595 Thu, 26 Sep 2024 06:58:46 +0000 https://randomnerdtutorials.com/?p=98272#comment-961595 Dear Sara, dear Rui,
again, your code worked 1:1 out of the box! Thank you very much for this!
Now, I would like to extend the code to trigger a photo two times a day.
However, the internal clock is just updated inside the function SmtpCallback only once.
How can I manage this, to update the clock regularly and extract the time?
Thank you in advance!
Regards,
Juergen

]]>