• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Motion_Detector_Photo_Email_New.ino comfile error

Q&A Forum › Motion_Detector_Photo_Email_New.ino comfile error
0 Vote Up Vote Down
Lee kiha asked 4 years ago

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 
 
 
 
 
 

8 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
Can you tell me the SMTP library version you’re using?
Regards,
Sara

0 Vote Up Vote Down
Lee kiha answered 4 years ago

Thanks your quick reply.
I use esp mail client 1.5.7. that was downloaded from esp-cam ebook v1.2.
 
K.H.LEE

0 Vote Up Vote Down
Lee kiha answered 4 years ago

on esp mail client 1.5.10, same compile error was happened.
 
 

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

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
 

0 Vote Up Vote Down
Lee kiha answered 4 years ago

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

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

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

0 Vote Up Vote Down
sorensenrh answered 3 years ago

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

0 Vote Up Vote Down
sorensenrh answered 3 years ago

Sara
i got it working. I used the instructions you gave in another topic by Alex re “Cam 32 module 3 unit 3”
I also switched back to the ESP Mail Client library . 
Thanks 
Ralph Sorensen

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.