Closed dontsovcmc closed 6 years ago
Blynk library version: 0.5.2
Send e-mail with multiple lines, but don't see them on "mail.ru" mailbox.
000:00:00:00:888 NOTICE (BLK) : send email 000:00:00:00:955 NOTICE (BLK) : email was send 000:00:00:00:955 NOTICE (BLK) : Новые показания {DEVICE_NAME} 000:00:00:00:955 NOTICE (BLK) : ГВС: 0.0 м3, ХВС: 0.0 м3 дельта: гвс: +0.03, хвс: +0.00 питание:3.027 В CMC: вода добавить: 0.0 0.0
I see multiple lines in the log
I see in mail.ru letter: ГВС: 0.0 м3, ХВС: 0.0 м3 дельта: гвс: +0.03, хвс: +0.00 питание:3.027 В CMC: вода добавить: 0.0 0.0
ГВС: 0.0 м3, ХВС: 0.0 м3 дельта: гвс: +0.03, хвс: +0.00 питание:3.027 В CMC: вода добавить: 0.0 0.0
I replace \r\n characters cause I show message content on WiFiManager web portal and need to see multiple lines.
msg.replace("\\n", "\n"); msg.replace("\\r", "\r"); msg.replace("{V0}", v0); msg.replace("{V1}", v1); msg.replace("{V2}", v2); msg.replace("{V3}", v3); msg.replace("{V4}", v4); title.replace("\\n", "\n"); title.replace("\\r", "\r"); title.replace("{V0}", v0); title.replace("{V1}", v1); title.replace("{V2}", v2); title.replace("{V3}", v3); title.replace("{V4}", v4); Blynk.email(sett.email, title, msg); LOG_NOTICE("BLK", "email was send"); LOG_NOTICE("BLK", title); LOG_NOTICE("BLK", msg);
Please use Blynk community forum for such questions
Sorry ) The answer found: https://community.blynk.cc/t/email-text-new-line/16580/3 =)
Blynk library version: 0.5.2
Scenario, steps to reproduce
Send e-mail with multiple lines, but don't see them on "mail.ru" mailbox.
Expected Result
I see multiple lines in the log
Actual Result
I see in mail.ru letter:
ГВС: 0.0 м3, ХВС: 0.0 м3 дельта: гвс: +0.03, хвс: +0.00 питание:3.027 В CMC: вода добавить: 0.0 0.0
Code
I replace \r\n characters cause I show message content on WiFiManager web portal and need to see multiple lines.