View Issue Details

IDProjectCategoryView StatusLast Update
0004177mantisbtemailpublic2010-09-19 03:13
Reportermmchenry Assigned Todhx  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionunable to reproduce 
Product Version0.19.0a2 
Summary0004177: Email format problem in 0.19.0
Description

I originally posted this to the help forum, but wasn't getting any response, so I thought I'd try here.

This is probably something specific to my installation since I haven't seen anyone else complain about it, but I can't figure out what's going on.

All notification emails generated by 0.19.0 (a1 or a2) seem to be missing carriage returns after each field and separator line. This doesn't happen in 0.18.3 which is running on the same machine and using the same config.inc (except for the database name).

Here's some sample text:

Project: TestIssue ID: 1083Category: Category1Reproducibility: alwaysSeverity: 3 - MinorPriority: Normal

TagsNo tags attached.

Relationships

related to 0004074 closeddhx Character   in email notification 
child of 0004350 closeddhx FAQ 

Activities

thraxisp

thraxisp

2004-07-22 20:02

reporter   ~0006246

What server are you using? I found the opposite. Mails sent from v0.18 appear to have extra lin-ends in them. In my case, I think that this in an interaction between several varieties of slightly misconfigured mail servers.

mmchenry

mmchenry

2004-07-26 08:16

reporter   ~0006366

Mantis 0.18 and 0.19 are both running in IIS on the same on Windows Server 2003 machine. The mail server is Ipswitch iMail 8.11 on a different Server 2003 machine, but both Mantis versions are using it. As mentioned, both versions use an identical config.inc, except for the database name. I agree it's probably a simple config issue, but I can't think of anything else to try.

thraxisp

thraxisp

2004-07-26 12:46

reporter   ~0006370

The email change between 0.18 and 0.19 is rework to use the phpmailer class, rather than the php mail primative. I have noticed that Outlook complains about extra returns in the messages, but can render it properly.

My experience was that the changes in rendering (single spaced to double spaced) were directly related to changes in our Exchange mail gateway.

mmchenry

mmchenry

2004-07-26 17:11

reporter   ~0006376

Any thoughts on what else I could do to narrow down the problem? As mentioned, both versions are running on the same web server and using the same email server, which would seem to indicate that the problem is on the Mantis/PHP side. Also, iMail's web mail interface also shows the message with missing CRLFs, so I don't think it's Oulook specific.

Is there some way I can check what the actual string was that Mantis passed to PHP Mailer? Or the contents of the email message generated by PHP Mailer before it got to my SMTP server?

thraxisp

thraxisp

2004-07-26 17:32

reporter   ~0006377

There is a config variable ($g_debug_mail) that you can set to a mail address. This should send the mail message to the address in the variable. (e.g., $g_debug_mail = "root"; in config_ing.php to send mail to local root).

mmchenry

mmchenry

2004-07-27 11:42

reporter   ~0006398

Still not sure of the root cause, but I found a workaround. Changed $g_phpMailer_method in config.inc from the default 0 (mail()) to 2 (SMTP). Now email appears as expected. Is there any advantage/disadvantage to the different phpMailer methods? Should I care?

Incidentally, I added some code to email_send in email_api to dump the contents of $mail->Body to a file just before the call to $mail->Send(). The text was formatted correctly. No missing or extra breaks, so it's not a Mantis problem. Must be something in phpMailer.

thraxisp

thraxisp

2004-07-29 12:19

reporter   ~0006445

There is some allusion in the phpmailer email list to a problem with text encoding. Setting it to "quote-printable" may help.

I don't have an easy way to test this right now.

mmchenry

mmchenry

2004-08-02 16:43

reporter   ~0006562

Let me know if there is anything you would like me to try. As mentioned, setting $g_phpMailer_method to SMTP solves the issue for our installation, so I wasn't going to spend any more time on it myself. However, if there is anything you would like me to try, I'd be happy to give it a shot.

ape

ape

2006-11-07 16:42

reporter   ~0013692

Been seeing this myself with Mantis 1.0.3 (running on Apache 2.0.55, PHP 5.1.6). Mail server is a remote server. Not sure what software it's running. Possibly iPlanet.

It's strange for me as I never used to have this problem on my older installations of Mantis. It's quite possible that the SMTP servers here have changed since then.

However, I can confirm the work-around of setting $g_phpMailer_method to SMTP works here.