EMail with Arduino GIGA R1 WiFi library compatibility

Home Forums Arduino EMail with Arduino GIGA R1 WiFi library compatibility

Viewing 10 reply threads
  • Author
    Posts
    • #29380
      syrinx
      Participant

        Hello,

        Does it work with the Arduino Giga R1 Wifi?

        I get the errors:

        ONLY ONE RECIPIENTmiltiple destination and attachments
        nsecure client:0
        smtp.gmail.com
        465
        eMail Sending status:
        resp.code: 2
        resp.desc: Could not connect to mail server
        resp.status: 0

        Thanks.

      • #29399
        Renzo Mischianti
        Keymaster

          Hi,
          Could not connect to mail server seems you can’t reach the server.
          Pay attention and follow the GMail configuration guide.
          But I think G1 does not use the standard WiFiNINA library or can’t be identified like a SAMD device, so I think It can’t work without a specified setting.

          Bye Renzo

          • #29466
            syrinx
            Participant

              I tried several providers, included GMX. I always get the same error, on all the ports.

              I think I configured well EMailSender.

              I can read also the UTC clock and connect to Arduino Iot. My Internet connection looks OK.

              Yes, the Giga R1 Wifi doesn’t use the WiFiNINA library. It used its internal WiFi.h.

              What can I do to help to update your library? The email is a big issue for the Giga, it seems it doesn’t exist any solution to send email with the Giga.

              Thanks.

          • #29469
            Renzo Mischianti
            Keymaster

              Try the version in this branch of the repository.
              Please give me the output you get.
              Thanks, Renzo

              • #29530
                syrinx
                Participant

                  I took this branch and I was able to send emails with Gmail.com 🙂

                  Now I’m trying to attach a CSV file I have in an USB memory stick inserted in the Giga in port USB A.

                  But the email arrived is always with an empty file (although the file is not empty in the memory stick).

                  I made several trials with in different way (FFAT, SD, SPIFFS, SPIFM, LITTLE_FS).

                  EMailSender::FileDescriptior fileDescriptor[1];
                  fileDescriptor[0].filename = F(“tapslog.csv”);
                  fileDescriptor[0].url = F(“/usb/tapslog.csv”);
                  fileDescriptor[0].mime = MIME_TEXT_PLAIN;
                  //fileDescriptor[0].mime = “text/csv”;
                  fileDescriptor[0].encode64 = false;
                  fileDescriptor[0].storageType = EMailSender::EMAIL_STORAGE_TYPE_FFAT;
                  EMailSender::Attachments attachs = { 1, fileDescriptor };

                  I get this log:

                  07:47:00.303 -> ONLY ONE RECIPIENTmiltiple destination and attachments
                  07:47:00.303 -> Insecure client:0
                  07:47:00.303 -> smtp.gmail.com
                  07:47:00.303 -> 465
                  07:47:01.372 -> 220 smtp.gmail.com ESMTP i9-20020a05600c354900b0040eee435571sm3147979wmq.45 – gsmtp
                  07:47:01.372 -> HELO mischianti
                  07:47:01.481 -> 250 smtp.gmail.com at your service
                  07:47:01.481 -> AUTH LOGIN:
                  07:47:01.599 -> 334 VXNlcm5hbWU6
                  07:47:01.599 -> Encoding
                  07:47:01.599 -> xxxx@onebeerlater.com
                  07:47:01.599 -> 29
                  07:47:01.599 -> ZnhkaG9sbGFuZGVyQG9uZWJlZXJsYXRlci5jb20=
                  07:47:01.599 -> Encoding
                  07:47:01.599 -> xxxx@onebeerlater.com
                  07:47:01.599 -> 29
                  07:47:01.689 -> 334 UGFzc3dvcmQ6
                  07:47:01.689 -> Encoding
                  07:47:01.689 -> xxPASSWORDxx
                  07:47:01.689 -> 10
                  07:47:01.689 -> Q2FzaGlzQio3NQ==
                  07:47:01.689 -> Encoding
                  07:47:01.689 -> xxPASSWORDxx
                  07:47:01.689 -> 10
                  07:47:02.204 -> 235 2.7.0 Accepted
                  07:47:02.204 -> MAIL FROM: <xxxxxx@onebeerlater.com>
                  07:47:02.316 -> 250 2.1.0 OK i9-20020a05600c354900b0040eee435571sm3147979wmq.45 – gsmtp
                  07:47:02.316 -> RCPT TO: <xxxxxx@onebeerlater.com>
                  07:47:02.410 -> 250 2.1.5 OK i9-20020a05600c354900b0040eee435571sm3147979wmq.45 – gsmtp
                  07:47:02.410 -> DATA:
                  07:47:02.640 -> 354 Go ahead i9-20020a05600c354900b0040eee435571sm3147979wmq.45 – gsmtp
                  07:47:03.219 -> Array: tapslog.csv
                  07:47:03.219 -> –frontier
                  07:47:03.219 -> Content-Type:
                  07:47:03.219 -> text/plain
                  07:47:03.219 -> ; charset=”UTF-8″
                  07:47:03.285 -> Readed filename: tapslog.csv
                  07:47:03.285 -> Message end
                  07:47:04.025 -> 250 2.0.0 OK 1706420824 i9-20020a05600c354900b0040eee435571sm3147979wmq.45 – gsmtp
                  07:47:04.153 -> 221 2.0.0 closing connection i9-20020a05600c354900b0040eee435571sm3147979wmq.45 – gsmtp
                  07:47:04.153 -> eMail Sending status:
                  07:47:04.153 -> resp.code: 0
                  07:47:04.153 -> resp.desc: Message sent!
                  07:47:04.153 -> resp.status: 1

                  • This reply was modified 10 months, 3 weeks ago by syrinx.
                  • This reply was modified 10 months, 3 weeks ago by syrinx.
              • #29470
                Renzo Mischianti
                Keymaster

                  Remember also to add the google certificate

                  My guide here

                  Send emails with attachments: Arduino SAMD boards (WiFiNINA) – 3

                  I also have a generic guide from Arduino.

                  Upload SSL root certificates

                  • #29531
                    syrinx
                    Participant

                      I didn’t need this.

                      • This reply was modified 10 months, 3 weeks ago by syrinx.
                  • #29537
                    Renzo Mischianti
                    Keymaster

                      I don’t support USB memory stick, I must check in witch way I can add It.
                      For now I release the support for Arduino GIGA network.
                      I’m going to check the USB integration.
                      Bye Renzo

                      • #29539
                        syrinx
                        Participant

                          Thank you very much Renzo.

                        • #29781
                          syrinx
                          Participant

                            Hello Renzo, did you have time to check the feasibility? Thanks.

                        • #29785
                          Renzo Mischianti
                          Keymaster

                            Hi Syrinx,
                            the Arduino GIGA sent from the Arduino factory arrived this week, but now I must check the features.
                            Probably I start next week.
                            Bye Renzo

                            • #29786
                              syrinx
                              Participant

                                Thanks. Good luck.

                              • #30037
                                syrinx
                                Participant

                                  Hello Renzo,

                                  Did you succeed with the Giga?

                              • #30044
                                Renzo Mischianti
                                Keymaster

                                  Hi Syrinx,
                                  Sending mail with GIGA works correctly, but I think USB stick support can’t be added because of some problems with the library’s scope.
                                  I release the official new version of EMailSender soon.
                                  Bye Renzo

                                • #30075
                                  syrinx
                                  Participant

                                    Not a good new for this card. I hope you or someone will find a fix.

                                    What type of storage should be used for the USB stick of the Giga? EMAIL_STORAGE_TYPE_FFAT?

                                    Thanks.

                                  • #30076
                                    Renzo Mischianti
                                    Keymaster

                                      No,
                                      for GIGA exists specified API with custom operators.
                                      Here is my implementation, but it does not work for now.
                                      Bye Renzo

                                    • #31800
                                      syrinx
                                      Participant

                                        Hello Renzo,

                                        any chance to have Gmail with attachements from the USB memory stick in an Arduino Giga?

                                        Thanks.

                                      • #31825
                                        Renzo Mischianti
                                        Keymaster

                                          Hi syrinx,
                                          sorry but I have some issue on some libraries and some pending think to complete, I don’t have so much time.
                                          I hope so be more free and work on It, but It’s very difficult.
                                          Bye Renzo

                                          • #31826
                                            syrinx
                                            Participant

                                              Thank you. Good luck.

                                        Viewing 10 reply threads
                                        • You must be logged in to reply to this topic.