View Issue Details

IDProjectCategoryView StatusLast Update
0024096mantisbtemailpublic2018-03-21 20:29
Reporterleonardo.salatino Assigned To 
Status newResolutionopen 
Product Version2.12.0 
Summary0024096: email body looks ugly

Hi, yesterday I upgraded my mantis from 2.5 to 2.12; everything went somoothly. But I have two issues with emails.

The body looks ugly because of the html, the email was ok before upgrading the version but now it is showing the <br /><br /> or a html tgs. Please see attached image.

How can I fix it?

TagsNo tags attached.


related to 0019829 new Emails looks scrambled 




2018-03-10 13:43




2018-03-10 14:41

developer   ~0059157

I am not able to reproduce the issue.

leonardo.salatino looks the e-mail you got for this note good for you?



2018-03-10 16:09

reporter   ~0059159

Yes, the email from this mantis is good (attached to this note); the one from my mantis installation is wrong. Is there some log that I can turn on and check?



2018-03-21 03:15

manager   ~0059256

Try tweaking the following lines in email_send() in core/email_api.php. Search for documentation of PHPMailer for possible values.

    # Setup new line and encoding to avoid extra new lines with some smtp gateways like
    $t_mail->LE         = &quot;\r\n&quot;;
    $t_mail->Encoding   = 'quoted-printable';


2018-03-21 20:29

reporter   ~0059271

In the mentioned function ("function email_send( EmailData $p_email_data )" in core/email_api.php in version 2.12) there was another line setting the html to false (line 1322):
"$t_mail->IsHTML( false ); # set email format to plain text"

I chanaged that parameter to True and it worked, now the emails are in html format and look nice.

Thank you very much for your help!

Issue History

Date Modified Username Field Change
2018-03-10 13:43 leonardo.salatino New Issue
2018-03-10 13:43 leonardo.salatino File Added: Screen Shot 03-10-18 at 03.40 PM.PNG
2018-03-10 14:41 atrol Status new => feedback
2018-03-10 14:41 atrol Note Added: 0059157
2018-03-10 16:09 leonardo.salatino File Added: Screen Shot 03-10-18 at 06.09 PM.PNG
2018-03-10 16:09 leonardo.salatino Note Added: 0059159
2018-03-10 16:09 leonardo.salatino Status feedback => new
2018-03-21 03:15 vboctor Note Added: 0059256
2018-03-21 04:24 atrol Relationship added related to 0019829
2018-03-21 20:29 leonardo.salatino Note Added: 0059271