Closed barneyz closed 4 years ago
it would be nice if EMailSender::EMailSender can config additional html or plain text, for testing i changed
client.println(F("Mime-Version: 1.0")); client.println(F("Content-Type: text/plain; charset=UTF-8")); client.println(F("Content-Transfer-Encoding: 7bit")); client.println(); String body = String(email.message) + "\r\n"; client.println(body); client.println(".");
instead of the original code
client.println(F("Mime-Version: 1.0")); client.println(F("Content-Type: text/html; charset=\"UTF-8\"")); client.println(F("Content-Transfer-Encoding: 7bit")); client.println(); String body = "<!DOCTYPE html><html lang=\"en\">" + String(email.message) + "
it would be nice if EMailSender::EMailSender can config additional html or plain text, for testing i changed
client.println(F("Mime-Version: 1.0")); client.println(F("Content-Type: text/plain; charset=UTF-8")); client.println(F("Content-Transfer-Encoding: 7bit")); client.println(); String body = String(email.message) + "\r\n"; client.println(body); client.println(".");
instead of the original code
client.println(F("Mime-Version: 1.0")); client.println(F("Content-Type: text/html; charset=\"UTF-8\"")); client.println(F("Content-Transfer-Encoding: 7bit")); client.println(); String body = "<!DOCTYPE html><html lang=\"en\">" + String(email.message) + "