• 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

'SMTP_Result {aka struct esp_mail_smtp_send_status_t}' has no member named 'timesstamp'

Q&A Forum › Category: ESP32 › 'SMTP_Result {aka struct esp_mail_smtp_send_status_t}' has no member named 'timesstamp'
0 Vote Up Vote Down
Terry Gruenenfelder asked 3 years ago

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
 

Question Tags: SMTP error
6 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

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
 
 
 
 

0 Vote Up Vote Down
Terry Gruenenfelder answered 3 years ago

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
 

0 Vote Up Vote Down
Terry Gruenenfelder answered 3 years ago

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
 

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

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

0 Vote Up Vote Down
DAVID COLLINS answered 3 years ago

I had the same problem and discovered that after making the following two changes:

  1.  Correct the typo by changing “timesstamp” to “timestamp”.
  2.  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

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

Yes, you are right.
Thanks for sharing.
Regards,
Sara

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

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 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.