Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Robert Holt
#63348 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.
User avatar
By Stewart
#73136 Varind,

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.
User avatar
By Craig54321
#79006 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.