Resource Description for EmailDraft

Properties for EmailDraft

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
body string
combineMessagesToSameHousehold bool
combineMessagesToSameRecipient bool
customReport CustomReport
recipientsResolvedDatetime DateTime
sendingCompletedDatetime DateTime
sendingProfile SendingProfile
sendingStartedDatetime DateTime
subject string

SDK Example for PHP

<?PHP

use Arbor\Api\Gateway\RestGateway;
use Arbor\Model\ModelBase;
use Arbor\Model\EmailDraft;

ModelBase::setDefaultGateway(
    new RestGateway(
        "https://my-school.arbor.sc/rest-v2",
        "my.username@my-school.arbor.sc",
        "3bh54435v3gh45"
    )
);

$emailDraft = EmailDraft::retrieve(5433);

$sendingProfile = $emailDraft->getSendingProfile();
$subject = $emailDraft->getSubject();
$body = $emailDraft->getBody();
$removeDuplicateMessages = $emailDraft->getRemoveDuplicateMessages();
$sendingStartedDatetime = $emailDraft->getSendingStartedDatetime();
$recipientsResolvedDatetime = $emailDraft->getRecipientsResolvedDatetime();
$duplicatesRemovedDatetime = $emailDraft->getDuplicatesRemovedDatetime();
$sendingCompletedDatetime = $emailDraft->getSendingCompletedDatetime();
$createdOperation = $emailDraft->getCreatedOperation();

 

Related Resources