I have problem in create campaign

Hello all,

               I have problem in create campaign. First i have added template and list in my client account. at the time of creation campaign i want use them. So i have used these function for create campaign ....

$html_content = http://preview.createsend.com/templates/publicpreview/0718331412D6DCDB?d=j (added template PreviewUrl)
$text_content = http://preview.createsend.com/templates/publicpreview/0718331412D6DCDB?d=j (added template PreviewUrl)

$campaignid = $cm->campaignCreate( $clientid, $campaign_name, $subject, $from_name, $from_email, $reply_email, $html_content, $text_content, $subscriber_listid, "" );

I am getting error "Invalid HTML text". How to resolve it please help me as soon as possible.

thanks in advance.

roshodgekiss roshodgekiss, 3 years ago

Hi there cyber123, just to confirm, are you using the creating a campaign from a template method?

the $text_content you're trying to define here is the same as the HTML content, which is likely why you're getting an error, too.

Thanks, cyber123 - keen to hear back from you, so we can look into this further.

Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
cyber123, 3 years ago

Hello  roshodgekiss,

Thank you for given best solution in create campaign from a template method. Its very help for me.

Join 200,000 companies around the world that use Campaign Monitor to run email marketing campaigns that deliver results for their business.

Get started for free