cancel
Showing results for 
Search instead for 
Did you mean: 

PHP SDK email_content Issues

SOLVED
Visitor

PHP SDK email_content Issues

Hello -

I'm able to create a campaign but the email_content is not working correctly, slashes are being added and some things are out of order.  I'm using HTML for the email_content_format.

 

So I put something like this in:

 

 

<html><body><h2>Rate Watch</h2><table cellpadding="15"><tr><td style="color: #ff0000;">TEST</td></tr></table></body></html>

and the Advanced editor shows this for the campaign:

 

 

<html><body><h2>Rate Watch</h2><table cellpadding=\"15\"><tr><td style=\"color: #ff0000;\">TEST</td></tr></table></body></html>

This is just a small example of the email I'm trying to create but this just breaks everything.  Any thoughts on what may causing this would be greatly appreciated.

 

 

Thanks.

Lukas

Tags (1)
1 REPLY 1
Visitor

Re: PHP SDK email_content Issues

Hello -

 

This was a silly oversight on my part, needed to use stripslashes() on the HTML entered into the textarea, all is working fine now.