Skip to content

Fixing Linebreaks in Text Messages

greenedv requested to merge greenedv/framadate:master into develop

According to https://github.com/PHPMailer/PHPMailer/blob/master/src/PHPMailer.php#L3830 they killed the standard html2text class and the text mails I got where wihtout any linebreaks at all. I kinda wrote a buildin function which 1. make proper line breaks, 2. removes a-Tag and 3. removes hr-tag for textmails only. Maybe the core class should use the mail-AltBody(body) feature instead of this solution, but for now this works for me and time to give something back.

Merge request reports