Home › Forums › The libraries hosted on the site › EMailSender send email with attachments › how to retrieve the debugging information of sending email
Tagged: Help
- This topic has 7 replies, 2 voices, and was last updated 3 years, 1 month ago by
Renzo Mischianti.
-
AuthorPosts
-
-
16 June 2021 at 00:00 #12612
Gilles
Hello everyone, it had been a while since I was in the area!
When you send an email with the serial monitor connected to the Arduino and the debuging mode is activated, there is a lot of very interesting information (recipients, sender, success of sending the email, … ) I would have liked to know if we can (and how) recover them in a String to write them in a txt file on the Micro SD. The part that I can’t conceive of is the debugging recovery of sending emails in a String (or char) … Does anyone know how to do this?
Thank you -
16 June 2021 at 22:10 #12685
Hi Gilles,
you can try to substitute the Serial (or DEBUB_PRINT and DEBUG_PRINTLN) with a Stream of file, but you must change some code on library.
Bye Renzo -
16 June 2021 at 23:43 #12695
Gilles
Looking further, I saw that the information when the debug function is activated comes from the EMailSender.cpp library.
Can we somehow copy this information into a String or char array?
To store on the debugging log on the micro SD. I guess the most even to answer this question is Renzo … Since he has created these bookstores so brilliantly.
But if anyone else has the solution I’m interested.
Thank you -
16 June 2021 at 23:49 #12696
Gilles
Ah! when I posted my second intervention on the subject, the post showed me your answer.
I was hoping there was a way to “copy†what was being displayed on the serial monitor more directly …
But suddenly I admit that modifying a library is not my programming level …
If one day you plan to modify your library, it could be an idea to directly integrate the possibility of sending the debug to a String that we could recover to integrate into a debug file ….
Thank you -
17 June 2021 at 09:48 #12703
Hi Gilles,
it’s a very specific request, and honestly I have developments and additions to libraries that I developed with a higher priority.
But if I find some time I try to develop these features.
Hi Renzo -
21 June 2021 at 01:06 #12768
Gilles
Thank you for everything, you already did a great job.
If you one day add this option (or others) in your v2 library for Arduino with Ethernet shield, do not hesitate to let me know.(by email)Thanks again!
-
30 March 2022 at 22:20 #19911
Kev
How do you enable debugging to serial port please ??
-
31 March 2022 at 08:50 #19918
Hi Kev,
you must uncomment the
#define EMAIL_SENDER_DEBUG
on EMailSenderKey.h.
-
-
AuthorPosts
- You must be logged in to reply to this topic.