eboost / exact-target
This package is abandoned and no longer maintained.
No replacement package was suggested.
Package to send an email to a data extention in salesforce using the ExactTarget SOAP api
1.0
2016-12-16 13:32 UTC
Requires
- php: >=7.0
- druid628/et-wsse: 1.0
This package is auto-updated.
Last update: 2022-06-17 16:19:18 UTC
README
The ExactTarget component is a collection of classes based on the ExactTarget PHP starter kit.
To create this package I have used druid628/exacttarget as a guideline, thanks!
Installation
composer require eboost/exact-target
Example
This example sends an email to a data extension.
$externalKey = 'SOME_KEY_GENERATED_IN_EXACT_TARGET'; $customerKey = 'some_random_key'; $htmlBody = '<b>This email was sent by %%Member_Busname%% %%Member_Addr%% %%Member_City%%, %%Member_State%%, %%Member_PostalCode%%, %%Member_Country%%</b>'; $client = new ExactTargetClient($username, $password, $instance); $result = $client->makeAndCreateEmail($customerKey, 'Subject of the email', $htmlBody); $emailId = $result->Results->NewID; $client->setEmailDefinition($customerKey, $externalKey, $emailId); $client->sendEmail($customerKey);