Forum Replies Created

Viewing 9 posts - 16 through 24 (of 24 total)
  • Author
    Posts
  • Gilles
    Participant

      Sorry, I didn’t see your reply.
      The debug is permanently activated but you need a PC connected to the Arduino and my Arduinos are in use on my apiary…
      And in addition this error does not seem systematic..
      I’ll put my dev hive back in my desktop and see if I can reproduce the problem to save the debug.
      I’ll let you know.
      THANKS

      Of course it works now…
      To be continued!
      THANKS

      Gilles
      Participant

        I found it is absolutely necessary to have during a file transfer to have started the SD card via: SD.begin (pinCS_SD);
        Which is normally the case but in my tests I only tried to send the file without having ever written on the SD so without having started the card…

        Nevertheless, I still have problems with emailsende error codes now I have a resp.code = 235 so not 0 and suddenly I redo several tests while the emails arrive well despite the code 235!
        WHAT IS THIS ERROR CODE?

        THANKS

        Gilles
        Participant

          With another program on the same hardware it works correctly and I get this:

          15:33:42.022 -> 250 2.1.5 Ok
          15:33:42.022 -> DATA:
          15:33:42.022 -> 354 End data with <CR><LF>.<CR><LF>
          15:33:42.070 -> Array: MARS2023.csv
          15:33:42.070 -> --frontier
          15:33:42.118 -> Content-Type: 
          15:33:42.118 -> text/csv
          15:33:42.118 -> ; charset="UTF-8"
          15:33:42.118 -> Readed filename: MARS2023.csv
          15:33:42.166 -> SD Check
          15:33:42.166 -> Open file: 
          15:33:42.211 -> OK
          15:33:42.211 -> NORMAL
          15:34:58.385 -> Message end
          15:34:58.716 -> 250 2.0.0 Ok: queued as 4PpdQr6wJwzYcmV
          15:34:58.716 -> 221 2.0.0 Bye
          15:34:58.716 -> Statut de l'envoi avec piece jointe : 
          15:34:58.809 -> 1
          15:34:58.809 -> resp Code: 0
          15:34:58.809 -> Description : Message sent!
          15:34:58.856 -> Message sent!

          However, this is a copy paste of this part of the file sending code..
          Thank

          in reply to: EmailSender sending mail with Gmail does not work #24858
          Gilles
          Participant

            ,
            OK thanks
            And do you have a list of error codes returned by email sender? (354, 2, 1, 235 and others…)
            THANKS

            in reply to: EmailSender sending mail with Gmail does not work #24833
            Gilles
            Participant

              Hello, no news?
              Thank You

              in reply to: EmailSender sending mail with Gmail does not work #24702
              Gilles
              Participant

                Another little question, have you already managed to send emails from the orange.fr messaging system that I created for you?
                For me there is no error message (error code =0), but no receipt of emails, a bit like there with SendGrid…
                It seems to me that sometimes I see the email sent in my mailbox but it disappears almost instantaneously on its own and there is no way to find any trace of it…. I can almost believe that I dreamed!
                THANKS

                in reply to: EmailSender sending mail with Gmail does not work #24700
                Gilles
                Participant

                  OK, I’ve made some progress, but it still doesn’t work.
                  I put :

                  uint16_t SMTP_PORT = 587; //the smtp port 25 don't work!
                  const char* smtp_server = "smtp.sendgrid.net"; // your mail address smtp server
                  const char* email_login = "apikey"; // your sender email address
                  const char* email_from = "somemailaddress@gmail.com"; // Your email address
                  const char* name_from = sender.c_str(); //transformation from string to const char*
                  const char* email_password = "sengrid's super long password string";

                  and especially :
                  string sender = “Arduino1”;
                  // the name of Senders that I put in Sendgrid!
                  suddenly emailsenders no longer sees an error but I don’t receive any email… whether with gmail or orange.fr or laposte.net senders….

                  I get this as a return:

                  multiple destination and attachments
                  20:58:25.520 -> Insecure client:0
                  20:58:25.567 -> smtp.sendgrid.net
                  20:58:25.567 -> 587
                  20:58:25.567 -> 220 SG ESMTP service ready at geopod-ismtpd-6
                  
                  20:58:25.614 -> HELO mischianti
                  20:58:25.660 -> 250 Hello, nice to meet you
                  
                  20:58:25.708 -> AUTH LOGIN:
                  20:58:25.708 -> 334 xyzzzz
                  
                  20:58:25.708 -> Encoding
                  20:58:25.708 -> apikey
                  20:58:25.708 -> 6
                  20:58:25.708 -> YXBpa2V5
                  20:58:25.708 -> Encoding
                  20:58:25.755 -> apikey
                  20:58:25.755 -> 6
                  20:58:25.755 -> 334 GGFzc4dtcmQ0
                  
                  20:58:25.802 -> Encoding
                  20:58:25.802 -> password
                  20:58:25.849 -> 69
                  20:58:25.849 -> encoded password
                  20:58:25.942 -> Encoding
                  20:58:25.988 -> password
                  20:58:26.034 -> 69
                  20:58:26.034 -> 235 Authentication successful
                  
                  20:58:26.081 -> MAIL FROM: <monadressemail@gmail.com>
                  20:58:26.128 -> 250 Sender address accepted
                  
                  20:58:26.175 -> RCPT TO: <monadressemail@gmail.com>
                  20:58:26.221 -> 250 Recipient address accepted
                  
                  20:58:26.268 -> RCPT TO: <monadressemail@laposte.net>
                  20:58:26.268 -> 250 Recipient address accepted
                  
                  20:58:26.315 -> RCPT TO: <monadressemail@wanadoo.fr>
                  20:58:26.362 -> 250 Recipient address accepted
                  
                  20:58:26.409 -> DATA:
                  20:58:26.409 -> 354 Continue
                  
                  20:58:26.409 -> Message end
                  20:58:26.504 -> 250 Ok: queued as fSgql6e3R0aCjwX8RNlfgg
                  
                  20:58:26.549 -> 221 See you later
                  
                  20:58:26.549 -> resp code = 0

                  THANKS

                  in reply to: EmailSender sending mail with Gmail does not work #24699
                  Gilles
                  Participant

                    Hello,
                    For information, do you have the list of error codes (with their meaning) that EmailSender can return?
                    example error code 354, 2, 235,1 ,…

                    I found the following line of code in your post:
                    EMailSender emailSend(“apikey”, “SG.FINTOFINTOFINTO.FINTOFINTO”, “sender.mischianti@gmail.com”, “smtp.sendgrid.net”, 25 );

                    can you please explain to me what some parts correspond to:
                    * “apikey” should be the login email…
                    Is this the name you gave to your sendgrid key?

                    * “SG.FINTOFINTOFINTO.FINTOFINTO” is the sendgrid API key.

                    * “sender.mischianti@gmail.com” corresponds to the sender email address.
                    You put the address of the sendgrid account? any one?…

                    * smtp.sendgrid.net is the smtp server
                    and finally
                    * 25 corresponds to the smtp port.

                    Currently all my different attempts to send an email via sendgrid returns me an error code = 2!
                    THANKS

                    in reply to: EmailSender sending mail with Gmail does not work #24698
                    Gilles
                    Participant

                      For information without really report for (at home in any case) to start the w5500 shield without Ethernet (therefore in fixed IP) it is absolutely necessary to start the clock BEFORE (via an RTC.begin(); command) the Ethernet shield otherwise the shield can only start with the presence of Ethernet!
                      THANKS

                      PS: I looked at your link:
                      Weather radio station with Arduino UNO/MEGA Ethernet problem with EmailSender
                      I will see if I can create a free send grid account.
                      THANKS

                    Viewing 9 posts - 16 through 24 (of 24 total)