cancel
Showing results for 
Search instead for 
Did you mean: 

email_content: Property is required but not found. SDK

Occasional Contributor

email_content: Property is required but not found. SDK

Getting an issue with email_content property. When creating object it is defined and when dumping the object I can see the property.

 

 

            $campaign = new Campaign();
            $campaign->name = 'A name';
            $campaign->subject = 'a subject';
            $campaign->from_name = 'a name mail';
            $campaign->from_email = 'delivery@mail.com';
            $campaign->greeting_string = '';
            $campaign->reply_to_email = 'to@mail.com';
            $campaign->text_content = '<html><body>' . $message . '</body></html>';
            $campaign->email_content = '<html><body>' . $message . '</body></html>';
            $campaign->email_content_format = 'HTML';
            $campaign->addList($delivery_list);
            $campaign = $this->cc->emailMarketingService->addCampaign(ACCESS_TOKEN, $campaign);

After the addCampaign I get the error email_content: Property is required but not found. 

 

1 REPLY
Moderator

Re: email_content: Property is required but not found. SDK

Hello,

Thank you for reaching out to Constant Contact API Support.

 

I think the issue may be due to the value of your email_content property. Please email webservices@constantcontact.com with a snippet showing the real information you are using and I'll be happy to troubleshoot further.

 

Sincerely,
David B.
Tier II API Support Engineer

Still need help?
You can post a new message in the Community or find us on Twitter Mon-Fri 8am - 8pm ET. We've got real people waiting to help you out. Click below to start a conversation!