mobizt / ESP-Mail-Client

The comprehensive Arduino Email Client Library to send and read Email for Arduino devices. The library also supports other network shields or modules e.g., Wi-Fi, Ethernet, and GSM/4G modules.
https://mobizt.github.io/ESP-Mail-Client/
MIT License
200 stars 58 forks source link

How to convert the received email as html format to plain text ? #284

Closed Electrolyt closed 1 year ago

Electrolyt commented 1 year ago

Hi mobiz,

i want to download the text context of new received emails with your great library. If the mcu gets the raw text, they is able to collect commandos as words in stringformat. When the microcomputer received emails in text-format (imap_data.enable.text = true), the carrige returns between the lines are missing. That's why words are put together. Because of this I want to get the HTML message (imap_data.enable.html = true) and later extract the raw text with line breaks and spaces between words. Do you now a simple existing solution for that ?

Best greetings, electrolyt

Build tool used: Arduino IDE 2.2.1

Board used (ESP32/ESP8266/Arudino): Seeeduino Xiao ESP32-S3

Other Libraries That are used:

**Description of problem:** See above.