I have now searched all over for fixing my issue but no solution. My dev gaveup long ago, so help anyone..
I have a integrated ticket system sending automatic email to user and admin when create and reply. The email header goes fine out and email ticket template also fine. But the Message included keep have this issue with line space replaced by rn.
It run on Linux server
Here is email header
$config[’email_headers’] = “MIME-Version: 1.0rnContent-type: text/plain; charset=iso-8859-1rnFrom: “sitename” <
Here is the function file part
$sql = “select * from “.TABLE_PREFIX.”emailtemplate where type=’ticketreply_send’ LIMIT 1”;
$sth = mysql_query( $sql );
$emailtemplate = mysql_fetch_array( $sth );
$Ticket_Email = $emailtemplate[‘content’];
$Ticket_Email = str_replace( “[[SITE_TITLE]]”, $this->config[‘title’], $Ticket_Email );
$Ticket_Email = str_replace( “[[ticket_id]]”, $ticketId, $Ticket_Email );
$Ticket_Email = str_replace( “[[message]]”, $message, $Ticket_Email );
$Ticket_Email = explode( “— Email —“, $Ticket_Email );
$Subject = $Ticket_Email[0];
$Message = $Ticket_Email[1];
mail( $user_info[’email’], $Subject, $Message, $this->config[’email_headers’] );
mail( $this->config[‘private_sys_email’], $Subject, $Message, $this->config[’email_headers’] );
If you need more parts of code pls let me now.
I realy hope some of you will give it a bit time and have the answer. Thank you alot.
email body comes like this:
Ticket g43d33Tp reply has been created.
Message: testingrnlinebrakern1rn2rn3rn4rndouble linernrnherern
To reply on this ticket, please login to your mydomain account
[url]http://mydomain.com
Kind regards,
Mydomain