Tagged: EMailSender, GMail
- This topic has 8 replies, 2 voices, and was last updated 2 years, 2 months ago by
Gilles.
-
AuthorPosts
-
-
7 March 2023 at 13:03 #24694
Hello, I have a little problem sending mail from an Arduino Mega and a W5500 (or W1500) shield with the Emailsender version library: 3.0.9 or 3.0.11 and Gmail messaging!
With an email on laposte.net no worries.I configured this in the sketch:
String sender ="Anemometer"; uint16_t SMTP_PORT = 587; const char* smtp_server = "smtp.gmail.com"; // your mail address smtp server const char* email_login = "myaddress@gmail.com"; // your sender email address const char* email_from = "myaddress@gmail.com"; // Your email address const char* name_from = sender.c_str(); //transformation from string to const char* const char* email_password = "secure password";
I get this as an error code: 235 :
Insecure client:0
12:54:24.719 -> smtp.gmail.com
12:54:24.719 -> 587
12:54:24.765 -> 220 smtp.gmail.com ESMTP b8-20020a5d4d88000000b002c70e60eb40sm12475582wru.11 – gsmtp12:54:24.860 -> HELO mischianti
12:54:24.860 -> 250 smtp.gmail.com at your service12:54:24.908 -> AUTH LOGIN:
12:54:24.908 -> 530 5.7.0 Must issue a STARTTLS command first. b8-20020a5d4d88000000b002c70e60eb40sm12475582wru.11 – gsmtp12:54:25.047 -> Encoding
12:54:25.047 -> monadresse@gmail.com
12:54:25.094 -> 29
12:54:25.094 -> Q24lsbVzLm1hbmhpBnZvaXJpQk8nbWFpbC5jb2z=
12:54:25.094 -> Encoding
12:54:25.141 -> monadresse@gmail.com
12:54:25.188 -> 29
12:54:25.188 -> 502 5.5.1 Unrecognized command. b8-20020a5d4d88000000b002c70e60eb40sm12475582wru.11 – gsmtp12:54:25.282 -> Encoding
12:54:25.282 -> motdepasse
12:54:25.329 -> 16
12:54:25.329 -> motdepasseconvertit
12:54:25.329 -> Encoding
12:54:25.329 -> Pl2ionbmtQrmqmyc
12:54:25.376 -> 16
12:54:25.376 -> 502 5.5.1 Unrecognized command. b8-20020a5d4d88000000b002c70e60eb40sm12475582wru.11 – gsmtp12:54:25.471 -> resp code = 235
Does anyone know how to setup emailSender with Gmail mail?
I can’t!
THANKS
-
7 March 2023 at 14:37 #24695
Hi Gilles,
w5500 don’t support TSL, so you can’t use Gmail, other people use service like sendgridYou can find a lot of information on this topic
Weather radio station with Arduino UNO/MEGA Ethernet problem with EMailSender
Bye Renzo
-
7 March 2023 at 19:33 #24698
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!
THANKSPS: 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 -
7 March 2023 at 20:02 #24699
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 -
7 March 2023 at 21:08 #24700
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
-
7 March 2023 at 21:53 #24702
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 -
18 March 2023 at 19:55 #24833
Hello, no news?
Thank You -
19 March 2023 at 14:30 #24857
Hi Gilles,
we can’t know the reason, but I can suppose that the receiver flag as spam and put It in the specified folder or reject It.
Bye Renzo -
19 March 2023 at 16:27 #24858
,
OK thanks
And do you have a list of error codes returned by email sender? (354, 2, 1, 235 and others…)
THANKS
-
-
AuthorPosts
- You must be logged in to reply to this topic.