View Issue Details

IDProjectCategoryView StatusLast Update
0019829mantisbtemailpublic2018-03-21 04:24
Reporterraro Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Product Version1.3.0-beta.2 
Summary0019829: Emails looks scrambled
Description

Since update it seems the emails look all scrambled, as in a lot of the following characters:
=3D

It seems this was due to the fact that Content-Transfer-Encoding is set to "quoted-printable". We fixed this setting this back to 8-bit on core/email_api.php line 916

TagsNo tags attached.
Attached Files
email_screenshot_7.png (76,936 bytes)   
email_screenshot_7.png (76,936 bytes)   

Relationships

related to 0016871 closedvboctor Email notifications are sent with extra blank lines 
related to 0023362 closedatrol Email Sends Incorrect Confirmation Email 
related to 0024096 new email body looks ugly 

Activities

atrol

atrol

2015-06-12 02:50

developer   ~0050899

Since update ...
Did you update from 1.2.19?

Which PHP version do you use?

Please add a screenshot of a scrambled mail.

The additional information listed below may also be useful:

  • Exact version of Database, Web server, Browser and Operating System
  • Relevant customizations (e.g. changes in config_inc.php, etc)
  • Installed plugins or custom functions ?
  • Was the MantisBT source code modified in any way ?
raro

raro

2015-06-12 03:55

reporter   ~0050900

  • We updated from 1.2.17 to 1.3.0-beta.2
  • PHP 5.3.3-0
  • DB version is 199, on mysql 5.0.7-dev, browser was on FF, Chrome and Safarim all latest version. All on OSX 10.10.3
  • Only customizations I had were email addresses, g_return_path_email, g_from_email
  • no additional plugins or functions
  • No changes to the source code other than my fix
mantis-email-scrambled.jpg (237,676 bytes)   
mantis-email-scrambled.jpg (237,676 bytes)   
atrol

atrol

2015-06-12 05:04

developer   ~0050901

Are the emails that you get from us also scrambled?

raro

raro

2015-06-12 05:14

reporter   ~0050903

no, they look pretty good on all our mail clients

dregad

dregad

2015-06-12 07:57

developer   ~0050905

Reminder sent to: vboctor

This definitely looks like a regression introduced by commit 8db8537a.

Since it would appear that the issue is dependent on the smtp infrastructure, maybe the encoding needs to become a config option,

atrol

atrol

2015-06-12 10:04

developer   ~0050906

I am wondering if this could be a bug in function quoted_printable_encode on OSX PHP 5.3.3-0 or a bug in phpMailer fallback if quoted_printable_encode is not available
Especially when seeing that user raro get's also other issues that can't be reproduced in our system, see 0019828

Whenever possible we should not introduce new configuration options that might just serve to workaround a bug.

@raro please create a file test.php in root directory of your Mantis installation with the following content:

<?php
echo "Testing: ";
if (function_exists('quoted_printable_encode')) echo "quoted_printable_encode does exist";

What's the output when running the script?

Furthermore, undo your mentioned changes in core/email_api.php line 973 (found in description of 0019828) to be sure that this issue is not a side effect of those changes.

raro

raro

2015-06-14 11:16

reporter   ~0050914

@Atrol:

php mantis-test.php

Testing: quoted_printable_encode does exist

Furthermore, the escpaing changes are done after the email bug (and the changes i made to temp fix it), so undo'ing them won't have any effect i reckon

fgalvis

fgalvis

2015-06-24 10:30

reporter   ~0050975

I had the same issue about a month ago. This was not related to phpmailer but to the encodnig of the email builded by mantis.

I just simply changed all the construction of the email to text/html and rebuilded the email_api.php to a new skin, this allow more flexible content to be included in the email.

But is a large modification sooooo i dont think anyone will be interested... i attached a screenshot of and user email he recieved from us.

atrol

atrol

2015-06-27 15:56

developer   ~0050987

maybe the encoding needs to become a config option,

Will not help with newer versions of phpMailer.
There is a change in version 5.2.10 of phpMailer

Automatic encoding switch to quoted-printable if message lines are too long
https://github.com/PHPMailer/PHPMailer/blob/master/changelog.md

raro

raro

2015-07-14 11:01

reporter   ~0051064

as stated in the the other ticket (0019828) the webserver is Debian based