element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • Choose Another Store
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs Send an Email from ESP8266 - Important Update
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: neilk
  • Date Created: 4 Feb 2021 2:08 PM Date Created
  • Views 867 views
  • Likes 5 likes
  • Comments 0 comments
  • esp-8266
  • smtp2go
  • email
Related
Recommended

Send an Email from ESP8266 - Important Update

neilk
neilk
4 Feb 2021

The Problem

 

A few days ago I discovered that the battery powered, ESP8266 based temperature monitor in one of my greenhouses had stopped transmitting data ti my local web server. When I investigated further, I found that the battery was flat.

 

This was a surprise, as I hadn't received any emails warning me that the battery voltage was low. The method I use has worked totally reliably since I first implemented it almost 2 years ago, as described here:

 

Send an Email from ESP8266

 

After switching on the battery charger, I returned to my current project, intending to look further into the email problem when I had more time.

 

Later the same day, I received an email from SMTP2GO, who provide the email forwarding service, as described in my earlier blog. The essence of their message was that the emails from my temperature monitor were bouncing because I was sending from a mymail.com address and that mymail.com has an SPF record that prohibits sending from servers outside their own network. Their advice was to use a genuine email address either from live.com or outlook.com, but to avoid AOL and Yahoo addresses.

 

I was a bit confused by all this, because the system had been working perfectly for the past 2 years, and the last time emails had been successfully sent was only 2 weeks ago (the typical life of the battery). I exchanged a few emails with SMTP2GO support team in order to clarify the situation and here is the (simple) solution:

 

 

The Solution

 

In the code snippets of my original post, I gave the following lines of code:

 

client.println(F("MAIL From: yrmail@gmail.com")); // Not a real address

 

client.println(F("From: yrmail@gmail.com"));

 

Although this worked at the time, for some reason which I can't remember, I switched to an imaginary address using mymail.com.

 

In order to comply with the advice from SMTP2GO, I registered a suitable address with outlook.com.

 

I then modified a test sketch, which just sends a test email, to use the new address. This worked, so I emailed SMTP2GO to let them know.

 

I received a fairy quick reply to tell me that everything was now OK.

 

Phew

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • Facebook
  • Twitter
  • linkedin
  • YouTube