PDA

View Full Version : phpmailer code affected



christie
04-30-2012, 08:11 PM
Hi all, have a problem with some code. We use phpmailer and as from last week when php was updated on the bluehost server to 5.2.17, backslashes are being added in front of all quote marks. See:<div id=\"container\">
<div id=\"header\">
<h1>NYSABE Conference</h1>
</div>
<!-- closes header -->
<div id=\"subHead\">
<h3 class=\"textshadow\">Dear Craig Christie,</h3>
</div>
<div id=\"message\"><!--general stylesheet--> <style type=\"text/css\">"

We have changed the settings in the php.ini file register_globals off and magic_quotes off but still the same happens. It kills all styling in the newsletters we are trying to send. Any help would be appreciated. We have lodged a support ticket with Bluehost support and are awaiting reply.

Craig :o

christie
05-01-2012, 05:48 PM
Found problem, had to turn the following to on in the php.ini file

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off