Skip to content

Package to send emails using a email definition list with the ExactTarget SOAP api

License

Notifications You must be signed in to change notification settings

EBOOST/exact-target

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EBOOST ExactTarget Client (SalesForce)

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);

About

Package to send emails using a email definition list with the ExactTarget SOAP api

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages