cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F2xx : Send an Email with GMAIL

KernelSistemi
Associate II
Posted on April 27, 2016 at 10:47

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

Luca
2 REPLIES 2
qwer.asdf
Senior
Posted on April 27, 2016 at 17:38

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

https://www.mailgun.com/

. 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).
Posted on April 27, 2016 at 17:46

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.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..