Page 5 of 6

Re: Getting smtp working using Arduino IDE?

PostPosted: Wed Dec 28, 2016 7:56 am
by edwin
Works pretty neat. Including signing up at smtp2go I think I was up and running in 10 minutes.

Re: Getting smtp working using Arduino IDE?

PostPosted: Sat Mar 04, 2017 3:06 pm
by Robert Holt
I'm having a little trouble getting this to work. It compiles fine, but will not send me an email. I tried my pop3 email account and SMTP2go. I signed up for a new SMTP2gor account with no problem. I'm not sure what information to put in the configure area. What belongs in the:

char from[] = "your@email.com"; // your@email.com

field for smtp2go? Not exactly sure what my smtp2go email address is.

Re: Getting smtp working using Arduino IDE with ESP8266.

PostPosted: Sun Jan 14, 2018 3:34 pm
by Stewart

I have tested your last email code posted, with the improved top constants.
After test sending email by Telnet with my mail server, and learning what my authentication problems were, I tweaked things a bit to match my requirements, and its working perfectly.

Thanks for sharing your code.

If anyone else is struggling to get their email code to send, please take a look at this Telnet guide https://www.wikihow.com/Send-Email-Using-Telnet. After you succeed at the telnet, you will understand the command sequence, your command success, step by step.

And this SMTP commands guide http://www.samlogic.net/articles/smtp-c ... erence.htm helped me polish my From line.

Re: Getting smtp working using Arduino IDE?

PostPosted: Sat Nov 03, 2018 10:40 am
by Craig54321
When using the sample code I'm getting successful responses right up until Sending To by the command "RCPT To". Then this happens my Serial Monitor shows:
C Sending To
S 550 that smtp username's account is not allowed to send

The 550 error message confuses me as it suggests this is a problem with the senders ability. But the preceding RCPT command is specifying the recipient, right? Further online help indicates the 550 error can be fixed by setting the SPF record of the "owned" DNS. But both the recipient and sender (me) are gmail accounts and I don't think I have the authorization to change gmail's SPF records.

Any help is appreciated. Thanks.