View Issue Details

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

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.

Relationships

related to 0019829 new Emails looks scrambled 

Activities

leonardo.salatino

leonardo.salatino

2018-03-10 13:43

reporter  

atrol

atrol

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?

leonardo.salatino

leonardo.salatino

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?

vboctor

vboctor

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 sendgrid.net
    $t_mail->LE         = &quot;\r\n&quot;;
    $t_mail->Encoding   = 'quoted-printable';
leonardo.salatino

leonardo.salatino

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!