$ident
$ident : string
The queue item ID.
Email queue item.
setTo(string|array $email) : \Charcoal\Email\EmailQueueItem
Set the recipient's email address.
string|array | An email address. |
If the email address is invalid.
Chainable
setFrom(string|array $email) : \Charcoal\Email\EmailQueueItem
Set the sender's email address.
string|array | An email address. |
If the email address is invalid.
Chainable
setSubject(string $subject) : \Charcoal\Email\EmailQueueItem
Set the email subject.
string | $subject | The email subject. |
If the subject is not a string.
Chainable
setMsgHtml(string $body) : \Charcoal\Email\EmailQueueItem
Set the email's HTML message body.
string | $body | The HTML message body. |
If the message is not a string.
Chainable
setMsgTxt(string $body) : \Charcoal\Email\EmailQueueItem
Set the email's plain-text message body.
string | $body | The plain-text mesage body. |
If the message is not a string.
Chainable
setCampaign(string $campaign) : \Charcoal\Email\EmailQueueItem
Set the campaign ID.
string | $campaign | The campaign identifier. |
If the campaign is not a string.
Chainable
process(callable $callback = null, callable $successCallback = null, callable $failureCallback = null) : boolean
Process the item.
callable | $callback | An optional callback routine executed after the item is processed. |
callable | $successCallback | An optional callback routine executed when the item is resolved. |
callable | $failureCallback | An optional callback routine executed when the item is rejected. |
Success / Failure
setEmailFactory(\Charcoal\Factory\FactoryInterface $factory) : \Charcoal\Email\EmailQueueItem
\Charcoal\Factory\FactoryInterface | $factory | The factory to create email objects. |
Chainable