PHP SDK email_content Issues

SOLVED
Go to solution
Occasional Participant

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

1 ACCEPTED SOLUTION
Occasional Participant

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.

View solution in original post

1 REPLY 1
Occasional Participant

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.

View solution in original post

Developer Portal

View API documentation, code samples, get your API key.

Visit Page