I just upgraded to the latest version of OSTicket. Everything is working great, except when a user opens a new ticket. The resulting email appears to be missing cr/lfs for new lines:

-- do not edit -- John, A request for support has been created and assigned ticket #879497. You can=

view this ticket's progress online here: http://support.system.com/tickets.php?e=john@system.com&t=879497(http://support.system.com/tickets.php?e=john@system.com&t=879497). If you wish to send additional comments or information regarding this issue=

, please don't open a new ticket. Simply login using the link above and upd= ate the ticket. -- Support

I tried deleting the template email and recreating it with no luck.

Any suggestions are appreciated.

I sort of fixed the issue. In the email settings for that particular account I enabled the optional SMTP settings, which I guess means OSticket sends directly rather than using /bin/sendmail.

However I'd rather use my local MTA which relays to an Exchange 2007 server, since this way the local Postfix server can hold the mail if anything goes wrong with Exchange.

Any ideas are appreciated.

R.

5 days later

I noticed the same for emails to Hotmail.. I didn't had this when I receive an email in my normal outlook account..

Haven't found any cause for this..

a month later

Here is the fix

In include/class.email.php starting on line 161 (unmodified file numbering)

replace the code:

$headers = array ('From' => $from,

'To' => $to,

'Subject' => $subject,

'Date'=>date('D, d M Y H O'),

'Message-ID' =>'<'.Misc:(6).''.time().'-'.$this->getEmail().'>',

'X-Mailer' =>'osTicket v 1.6',

'Content-Type' => 'text/html; charset="UTF-8"'

);

$mime = new Mail_mime();

With:

$crlf = "\n";

$headers = array ('From' => $from,

'To' => $to,

'Subject' => $subject,

'Date'=>date('D, d M Y H O'),

'Message-ID' =>'<'.Misc:(6).''.time().'-'.$this->getEmail().'>',

'X-Mailer' =>'osTicket v 1.6',

'Content-Type' => 'text/html; charset="UTF-8"'

);

$mime = new Mail_mime($crlf);

Really easy but this drove me crazy!

19 days later

@[deleted]

tested and works thank you very much!!

Write a Reply...