Skip to main content
KernelSistemi
Associate II
April 27, 2016
Question

STM32F2xx : Send an Email with GMAIL

  • April 27, 2016
  • 2 replies
  • 1188 views
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
    This topic has been closed for replies.

    2 replies

    qwer.asdf
    Senior
    April 27, 2016
    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).
    Tesla DeLorean
    Guru
    April 27, 2016
    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 (See Profile) Up vote any posts that you find helpful, it shows what's working..