Hi there,
Does anyone have a working sample of Email Inline Deployment using PHP?
I am trying to send emails using REST API and has below error, even though I've set the htmlContent-> Type = 'RawHtmlContent':
[{"type":"ObjectValidationError","container":{"type":"ObjectKey","container":{"type":"ObjectKey","objectId":"63","objectType":"Email"},"objectType":"StructuredHtmlContent"},"property":"htmlBody","requirement":{"type":"StringLengthRequirement","minLength":1},"value":""}]
This is my code:
$email = array('clickthroughCount' => null,
'contacts' => array('emailAddress' => 'adiputra@marketingcube.com.au',
'name' => 'adiputra@marketingcube.com.au',
'id' => '372'),
'openCount' => null,
'sendFromUserId' => null,
'statistic' => null,
'email' => array('htmlContent' => array('type' => 'RawHtmlContent',
'html' => 'Hello Adi!'),
'id' => null,
'bouncebackEmail' => null,
'createdAt' => null,
'createdBy' => null,
'emailFooterId' => null,
'emailGroupId' => null,
'emailHeaderId' => null,
'encodingId' => null,
'isPlainTextEditable' => false,
'name' => 'Sample Email',
'plainText' => null,
'sendPlainTextOnly' => false,
'replyToName' => 'Adi',
'replyToEmail' => 'adiputra@marketingcube.com.au',
'senderEmail' => 'adiputra@marketingcube.com.au',
'senderName' => 'Adi',
'updatedAt' => null,
'updatedBy' => nul,
'subject' => 'SampleAPITest'),
'endAt' => '0001-01-01T05:00:00Z',
'failedSendCount' => null,
'id' => null,
'name' => 'Sample Deployment',
'sentSubject' => null,
'successfulSendCount' => null,
'type' => 'EmailInlineDeployment');
Anything I did wrong here?
Thanks in advance.
Adi