Page 1 of 1

& turning into &

Posted: Wed Apr 17, 2013 7:24 pm
by mkoch227
Script URL: http://support.kandbconsult.com
Version of script: 2.3
Hosting company: Bluehost
URL of phpinfo.php: http://kandbconsult.com/phpinfo.php
URL of session_test.php: N/A
What terms did you try when SEARCHING for a solution: ampersand issues

Write your message below: My business name is "K & B Consulting". However, when e-mails send out, it magically becomes "K & B Consulting", which & is the HTML code for &. If I change it strictly back to & in the database, everything works fine, until I change a setting. Is there a way to stop HESK from changing & to &?

Re: & turning into &

Posted: Wed Apr 17, 2013 7:59 pm
by Klemen
I see what you mean.

Could you please try this:
1. open file "inc/email_functions.inc.php" in a text editor
2. just above this line:

Code: Select all

if (!$is_ticket)
paste this code

Code: Select all

$hesk_settings['site_title'] = hesk_msgToPlain($hesk_settings['site_title'], 1);
3. save, upload and test

Re: & turning into &

Posted: Tue Apr 23, 2013 9:44 pm
by mkoch227
Seems to be working properly. Thanks!

Code: Select all

Dear <name>,

Our staff has just replied to your ticket "TEST E-MAIL FORMATTING"

You can view the ticket here:
http://<link>


*DO NOT REPLY TO THIS E-MAIL*
This is an automated e-mail message sent from our support system. Do not reply to this e-mail as we won't receive your reply, use the link above for proper communication!

Yours sincerely,

K & B Consulting
http://kandbconsult.com