I am doing my sketch based on AllAboutEE’s youtube video ( Send Email From ESP8266 Using NodeMcu Firmware - YouTube ) to send email via SMTP, but when I attempt to compile the sketch I get one error, repeatedly. I am using Arduino IDE v1.0.6 and an UNO Rev3. Here is the first IDE compile error instance:
ESP8266sendEmailCLEANED.ino: In function ‘boolean do_next()’:
ESP8266sendEmailCLEANED:152: error: ‘class Adafruit_ESP8266’ has no member named ‘cipSend’
I am using the Adafruit ESP8266 library (.cpp and .h files attached), and I verified that my ESP8266 is flashed with the same firmware as the library expects.
I attached my cleaned (i.e. removed sensitive info) sketch as a text file, but here is an excerpt where you can see the first instance of the offending “return wifi.cipSend” line:
// do_next executes the SMTP command in the order required.
return wifi.connectTCP(F(HOST), PORT);
// send “HELO ip_address” command. Server will reply with “250” and welcome message
return wifi.cipSend(“HELO computer.com”,F(“250”)); // ideally an ipaddress should go in place
// of “computer.com” but I think the email providers
// check the IP anyways so I just put anything.
Adafruit_ESP8266.cpp (9.36 KB)
Adafruit_ESP8266.h (2.51 KB)
ESP8266sendEmailCLEANED.txt (7.46 KB)