Hello All,
It’s regarding compiling ESP32-CAM module 3 unit 3 sketch.
I am continiously meeting the problem as below:
‘SMTP_Result {aka struct esp_mail_smtp_send_status_t}’ has no member named ‘timesstamp’
(refering to line 377 in the “NEW”‘- sketch.
Can you please advise me to have this compiling error solved please,
Thank you in advance,
Alex
Hi.
There was an update on the library.
Replace the following lines:
/* Get the result item */
SMTP_Result result = smtp.sendingResult.getItem(i);
localtime_r(&result.timesstamp, &dt);
With these:
/* Get the result item */
SMTP_Result result = smtp.sendingResult.getItem(i);
time_t ts = (time_t)result.timestamp;
localtime_r(&ts, &dt);
Let me know if this solves the problem.
Regards,
Sara
Thank you very much for your reply Sara,
As I am very seriously in following every letter in your book I have to notice that on page 43 you suggested to use
version 1.0.4 of the ESP-32 cam board so I keptt this version active in all my experiments……
Note: Throughout this eBook, we’ll use version 1.0.4. At the time of writing this
eBook, newer versions have issues with the ESP32-CAM.
After getting some trouble, as you can see in my ESP-32 Cam Forum questions I solved some matters by updating to the last board version 1.0.6.
It does not mean that all my issues are solved now.
Your above suggestion was not succesful.
email was not sent and the result of the “picturecapure” you can find her at:
roosje.ddns.net:1825
(as long as I am NOT experimenting the board…..)
Thank you very much for your support,
Alex
Hi Alex.
I’m sorry, but I didn’t understand what is the current issue at the moment.
Can you better explain?
Regards,
Sara
Hi Sara,
As I modified the sketch as you suggested It’s still impossinle for me to execute an email in sketches of Module3/ unit1 and in Module3/ unit3.
In both sketches I am confrontaded wit the same error when I try to send email.
< S: 501 5.5.4 Error: Bad NOTIFY parameter syntax
Error, set recipient failed
Here you will find a total overview of the COM-port feedback after executing an email send:
Taking a photo…
Picture file name: /photo.jpg
The picture has been saved in /photo.jpg – Size: 90112 bytes
Connecting to SMTP server…
> C: ESP Mail Client v1.6.4
> C: connect to SMTP server
> C: host > mail.zeelandnet.nl
> C: port > 465
> C: starting socket
> C: connecting to Server
> C: seeding the random number generator
> C: setting up the SSL/TLS structure
! W: Skipping SSL Verification. INSECURE!
> C: setting hostname for TLS session
> C: performing the SSL/TLS handshake
> C: verifying peer X.509 certificate
> C: smtp server connected
SMTP server connected, wait for greeting…
< S: 220 mail.zeelandnet.nl ESMTP Postfix
Sending greeting response…
> C: send smtp command, HELO
< S: 250-mail.zeelandnet.nl
< S: 250-PIPELINING
< S: 250-SIZE 20480000
< S: 250-VRFY
< S: 250-ETRN
< S: 250-AUTH PLAIN LOGIN
< S: 250-AUTH=PLAIN LOGIN
< S: 250-ENHANCEDSTATUSCODES
< S: 250-8BITMIME
< S: 250 DSN
Logging in…
> C: send smtp command, AUTH PLAIN
> C: abom1@zeelandnet.nl
> C: abom1@zeelandnet.nl ***********
< S: 235 2.7.0 Authentication successful
Sending Email…
> C: send Email
Sending message header…
> C: send message header
< S: 250 2.1.0 Ok
< S: 501 5.5.4 Error: Bad NOTIFY parameter syntax
Error, set recipient failed
> E: set recipient failed
> C: cleaning SSL connection
Error sending Email, set recipient failed
Photo captured and emailed using an ESP32-CAM.
Please advise after checking these sketches by yourself first…!
Thank you in advance
Alex
Hi.
I just tested the exmaple of Module 1, Unit 3 and it is working fine.
As you can see from the logs you’ve posted, there is a 501 SMTP error:
< S: 501 5.5.4 Error: Bad NOTIFY parameter syntax
If you search for SMTP error codes, you’ll find that:
501: Syntax error in parameters or arguments
So, there might be some error in the sending email, sending password and/or SMTP server details. I searched for your email provided SMTP details, and it seems you inserted the correct details: https://www.postbox-inc.com/setup/email-settings/access-zeelandnet-nl-via-imap-smtp
There must be something wrong with the details of your email provider or some setting that needs to be activated… I’m not sure. I’m not familiar with that email provider…
Do you have a gmail account that you can experiment with?
Regards,
Sara
Thank you for your advise, Sara
Indeed a safety setting at my email-provider
Gmail was not a problem at all
Problem solved
Thank you,
Alex