how to retrieve the debugging information of sending email

Home Forums The libraries hosted on the site EMailSender send email with attachments how to retrieve the debugging information of sending email

Tagged: 

Viewing 7 reply threads
  • Author
    Posts
    • #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

      • #12685
        Renzo Mischianti
        Keymaster

          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

        • #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

          • #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

            • #12703
              Renzo Mischianti
              Keymaster

                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

              • #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!

                • #19911
                  Kev

                    How do you enable debugging to serial port please ??

                  • #19918
                    Renzo Mischianti
                    Keymaster

                      Hi Kev,
                      you must uncomment the
                      #define EMAIL_SENDER_DEBUG
                      on EMailSenderKey.h.

                  Viewing 7 reply threads
                  • You must be logged in to reply to this topic.
                  Exit mobile version