I am getting an error code 311, "Invalid HTML Content", when I try to create a campaign. See code below (with removed key numbers and urls).
$cm = new CampaignMonitor('xxxxxxxxxxxxxxxxxxxxxxxxxxxx'); $result = $cm->campaignCreate( 'xxxxxxxxxxxxxxxxxxx', 'Links', 'Links', 'Info', 'firstname.lastname@example.org', 'email@example.com', 'http://test.xxxxxx.com/links/test.html', 'http://test.xxxxxx.com/links/test.html', array('xxxxxxxxxxxxxxxxxxxxxxx'), "" );
311: Invalid HTML Content
I've simplified my HTML page down to the following and still get the error.
Either there is something required of an HTML page (doctype? I've tried that), or the API isn't working. I can't imagine the API is broken, this is a key feature. Any ideas?
From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.Get started for free