Chaotic mail formatting after mantis upgrade

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
dhintr
Posts: 5
Joined: Jan 24, 2017 2:38 am

Chaotic mail formatting after mantis upgrade

Post by dhintr »

Hi!
I am experiencing the following problem: We upgraded our mantis to 2.0.0 and so far everything seems to work but the email notifications. First thing; outlook says that it has removed extra line breaks from the message (which wasnt so with the notifications of our old mantis version), secondly (after letting outlook revert what it did to the mail) the formatting still is weird; the equal signs (separators between blocks of information) are split into three lines and every second line in the email is a blank line (a line break, I suppose).
Is there some way to get the old email notifications back? We tried swapping the email_api.php from the old mantis version with the new one, but that makes mantis crash (show a blank page).
Any help would be much appreciated :)

dhintr
Posts: 5
Joined: Jan 24, 2017 2:38 am

Re: Chaotic mail formatting after mantis upgrade

Post by dhintr »

Is there any way to change the email formatting without changing some config?

atrol
Site Admin
Posts: 7776
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Chaotic mail formatting after mantis upgrade

Post by atrol »

Please use Search before posting and read the Manual

dhintr
Posts: 5
Joined: Jan 24, 2017 2:38 am

Re: Chaotic mail formatting after mantis upgrade

Post by dhintr »

Did help indeed. I commented out the following lines in core/email_api.php:
$t_mail->LE = "\r\n";
$t_mail->Encoding = 'quoted-printable';

Now it works :)

Thanks

Post Reply