2016-04-27 01:47 AM
STM32F217 : Send an Email with GMAIL
Hi,
I've a problem (I use : STM32F217 - ETH RMII Mode - Standalone) : I need to send an email using a gmail account! a. I don't use DNS so I need SMTP server IP ADDRESS of ''smtp.gmail.com'' ! b. I already tried ''074.125.206.108'' and ''074.125.206.109''... but nothing. c. I activate : ''Access for less secure apps''. What can i do now ? Someone has already encountered the same problem ? Thanks a lot Luca2016-04-27 08:38 AM
Correctly sending an email so that it doesn't end up in Gmail's spam folder is not easy even from a ''grown-up'' server (you'll need static IP address with configured PTR DNS records, DKIM signatures, etc.).
I can suggest you to use an Email sending API like . They will let you send 10,000 emails free every month. You can send your emails with simple HTTPS requests (I don't know whether they support unencrypted plain HTTP so it's possible that you will need a TLS library like mbedTLS for accessing their API).2016-04-27 08:46 AM
Step One : Demonstrate you can do it on a PC with sockets, either in Windows or Linux.
Ideally have your own server, and use that. At least with that you'll be able to understand why things aren't working, or are rejected.