How to get Adafruits "send_email_smtp.ino" to send email with ESP8266 and Arduino UNO.

And eliminating the problem with "no response from module" many have.

The module works on 3.3v logic according to documentation, but I had no issue with 5v rx and tx of arduino, play it at your own risk !!

Step 1: Firmware on the ESP8266

  • To get it working, must the firmware on the ESP8266 be version: ! (old firmware!)
  • USB-connect the Arduino UNO and upload the "BareMinimum"-sketch with Arduino IDE software, so nothing disturb the flasher software. (Find the BareMinimum in "File" > "Examples" > "01.Basics" > "BareMinimum")

  • Take note of what COM-port the Arduino UNO use. (See your COM in "Tools" > "Port:")
  • Close Arduino IDE after upload and unplug power/USB.
  • Wirring the ESP8266 to the Arduino UNO as pictures above shows.

  • Connect the Arduino UNO to USB again.

  • Download flasher-software and the firmware BIN-fil here : http://www.mediafire.com/download/zcw2gy07s2z60y6/ESP8266_flasher_and_0.9.2.4.zip

  • Unzip the files into a folder, and run the flasher software (esp8266_flasher.exe)

  • Click on the "BIN"-button and find the BIN-fil (v0.9.2.4 AT Firmware-ESPFIX.bin) in the folder.

  • Check whether it is the correct COM port or change it to the correct port.

  • To start the upload/flashing, Click on the "Download"-button
  • If everything is runs, will the flasher software show you the status of flashing and the blue LED on the ESP8266 will blink very fast.

  • If: Failed to connect, just try unplug USB and replug the USB again and click on the "Download"-button again !
  • In the end at 99%, it will show some error but this is ok.

  • The ESP8266 has now firmware version: !!!

Step 2: Rewiring

  • Unplug power/USB.
  • Rewirring the ESP8266 to the Arduino UNO as pictures above shows. VERY IMPORTANT !!!
  • Download the "ESP8266 library" here : http://www.mediafire.com/download/q79ud0f6qzkvcv9/Adafruit_ESP8266-master.zip

  • Open the Arduino IDE software and import the library (click "Sketch" > "Include Library" > "Add ZIP. Library..." > find the Adafruit_ESP8266-master.zip -file and click "Open")
  • USB-connect the Arduino UNO again and upload the "send_email_smtp"-sketch with Arduino IDE software ("Files" > "Examples" > "Adafruit_ESP8266-master" > "send_email_smtp")

  • Now just see this YouTube video https://www.youtube.com/watch?v=n5WZ_BNRvRY
  • And adjust the same things as he does. :-)
<p>In serial monitor I have &quot;Hard reset...'</p><p>no response from module.&quot; Could someone help me please?</p>
<p>I have followed all steps carefully as above. But after uploading program, when I open serial monitor it always shows : </p><p>Hard Reset...'<br>no response from module.</p><p>please help</p>
<p>hi, may i know whether the connection of esp8266 to arduino mega is the same as the connection to arduino uno?</p>
<p>class Adafruit_ESP8266' has no member named 'cipSend'</p><p>plz help me to solve this problem?????</p><p>urgent</p>
<p>hye, have you fix the error yet?</p>
<p>Have you tried changing HELO to EHLO? There are a number of causes of this error so we'd need to see more of your code.</p>
<p>Have you tried changing HELO to EHLO? There are a number of causes of this error so we'd need to see more of your code.</p>
<p>This has been a fun little project! I pretty much followed all instrux here and added a PIR sensor to the mix and used SMS instead of email notifications. Still need to use SMTP2GO to get around the TLS SSL security issues. So...for me this is now a portable security device of sorts, as long as there is WIFI nearby. When the PIR is tripped, i substituted its flag for the 'send it' flag. So now I get a SMS text to my mobile whenever whatever it is watching or guarding is violated. Pretty Cool! I wired all without any added voltage regulation. It's been running for the last 2 days without issues.</p>
<p>Hello John, did you used an exact coding as given or did you changed any in the coding? :)</p><p>Big thanks</p>
<p>Hi There,</p><p>The only thing I needed to change was the SMTP command from HELO to EHLO. Once I did that, all finally worked. Obviously you'll still need to mod the accounts info and email server personalized to you. Let me know how you make out with it.</p>
<p>I'm currently working out with this project but same as yours I used PIR sensor as to trigger the circuit. It will be an honoured if you can guide me throughout this process. Basically, I'm using gmail as an email from and the coding wants to define the host. </p><p>#define HOST &quot;smtp.gmail.com&quot; </p><p>#define PORT 587 </p><p>The problem here is I'm not pretty sure about this two lines. Am I doing it right? </p><p>Thank you for helping me out :)</p>
Hi there, Have you setup a smtp2go.com account? Gmail will not accept insecure connections, so you need a jump server of sorts, that being smtp2go.Let me know. Have a good night and I will check in tomorrow.
<p>Hai there, may I know what is your connections between the pir sensor to others? Because your pir sensor is differ to mine.</p><p>Big thanks.</p>
<p>I am running all on 3.3V. The PIR is on pin7.</p>
<p>Thus you dont used 5v connection? is it the PIR output is on pin7? May I share my board photos with you so that you can recognize what is wrong with my board, please?</p>
<p>You need to set pin7 as an input so when it detects movement from the PIR, it goes high and triggers the email notification. Please feel free to share any pics and I shall take a look. </p>
<p>This is the picture, I really hope you can help me to sort this circuit out. Thankyou</p>
<p>I DM'd you so please check your actual Inbox here. We can continue troubleshooting there for now.</p>
<p>Hello Joh, can you please check your inbox please?</p>
<p>I wasted my 2 esp on this tut. Every time it falshes .ESP does not repond on AT. What should i do??</p>
<p>Have you tried changing the baud rate in Serial Monitor? I had to test a bunch of different rates until 57,600 worked. Also, make sure you change the wiring back after flashing as described in directions. </p>
<p>AT+CIPCLOSE</p><p>&lt;--- '</p><p>ERROR</p><p>Any chance?</p>
<p>Try changing HELO to EHLO. It worked for me.</p>
<p>It worked! Many thanks!</p>
<p>Writing at 0x0007e400... (99 %)</p><p>Writing at 0x0007e800... (99 %)</p><p>Writing at 0x0007ec00... (99 %)</p><p>Leaving...</p><p>Failed to leave Flash mode</p><p>This is fine. My Module stopped responding after Update :D</p>
<p>unable to upload arduino code.</p><p>'class Adafruit_ESP8266' has no member named 'cipSend'</p><p>need help:(</p>
<p>well i saw this today only. try another libaray from Adafruit. it will work.</p>
<p>it shows me an error</p>
<p>Awesome. Great Arduino project. Thanks for sharing.</p>

About This Instructable




More by kryder91:Send email with ESP8266 and Arduino UNO 
Add instructable to: