Resource Description for EmailRecipient

Properties for EmailRecipient

Property Name Type Required Is Collection?
Property Name Type Required Is Collection?
draftRecipient MessageDraftRecipient
email Email
emailAddress EmailAddress
failedDatetime DateTime
receivedDatetime DateTime
recipient mixed
recipientIndex int
recipientName string
recipientRawEmail string
recipientType string

SDK Example for PHP

<?PHP

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

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

$emailRecipient = EmailRecipient::retrieve(5433);

$email = $emailRecipient->getEmail();
$recipientType = $emailRecipient->getRecipientType();
$recipientName = $emailRecipient->getRecipientName();
$recipientRawEmail = $emailRecipient->getRecipientRawEmail();
$emailAddress = $emailRecipient->getEmailAddress();
$recipient = $emailRecipient->getRecipient();
$draftRecipient = $emailRecipient->getDraftRecipient();
$recipientIndex = $emailRecipient->getRecipientIndex();
$receivedDatetime = $emailRecipient->getReceivedDatetime();
$failedDatetime = $emailRecipient->getFailedDatetime();

 

Related Resources