/    Sign up×
Community /Pin to ProfileBookmark

Ticket message makes rn in line space

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” <[email protected]>rnReply-To: “NoReply” <[email protected]>rnX-Priority: 3rnX-Mailer: PHP 5.4″;

Here is the function file part

# Email to user and admin code starts here

$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’] );

# Email to user and admin code ends here

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[/url]

Kind regards,
Mydomain

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@ginerjmApr 09.2014 — Can we see some of the code that creates the message body that is giving you the problem? I'm guessing that you didn't use dbl quotes on that part.
×

Success!

Help @cmoller spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.6,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...