Do you know any good HTML to plain text conversion class written in PHP?
I need it for converting HTML mail body to plain text mail body.
I wrote simple function, but I need more features like converting tables, adding links at the end, converting nested lists…
--
regards
takeshin
To send an email in plain text in Gmail, compose a message as you normally would. At the bottom of the compose window, click the three-dot menu and then click Plain text mode. This setting acts as a toggle. To de-activate plain-text mode, re-select the menu option.
If you want visually appealing emails, the HTML format is for you. If you're going to deliver a more toned-down, straightforward message, you're better off using plain text emails. You can also use hybrid emails — HTML emails with minimal formatting and look like plain text emails.
A particular mail sending implementation around here simply spawns lynx with the HTML and uses its output for the text version. It's not perfect but works. You might also use links or elinks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With