$campaign
$campaign : string
The campaign ID.
Default implementation of the `EmailInterface`.
setData(array $data) : \Charcoal\Email\Email
Set the email's data.
array | $data | The data to set. |
Chainable
setCampaign(string $campaign) : \Charcoal\Email\EmailInterface
Set the campaign ID.
string | $campaign | The campaign identifier. |
If the campaign is invalid.
Chainable
setTo(string|array $email) : \Charcoal\Email\EmailInterface
Set the recipient email address(es).
string|array | The recipient email address(es). |
If the email address is invalid.
Chainable
addTo(mixed $email) : \Charcoal\Email\EmailInterface
Add a recipient email address.
mixed | The recipient email address to add. |
If the email address is invalid.
Chainable
setCc(string|array $email) : \Charcoal\Email\EmailInterface
Set the carbon copy (CC) recipient email address(es).
string|array | The CC recipient email address(es). |
If the email address is invalid.
Chainable
addCc(mixed $email) : \Charcoal\Email\EmailInterface
Add a CC recipient email address.
mixed | The CC recipient email address to add. |
If the email address is invalid.
Chainable
setBcc(string|array $email) : \Charcoal\Email\EmailInterface
Set the blind carbon copy (BCC) recipient email address(es).
string|array | The BCC recipient email address(es). |
If the email address is invalid.
Chainable
addBcc(mixed $email) : \Charcoal\Email\EmailInterface
Add a BCC recipient email address.
mixed | The BCC recipient email address to add. |
If the email address is invalid.
Chainable
setFrom(string|array $email) : \Charcoal\Email\EmailInterface
Set the sender's email address.
string|array | An email address. |
If the email is not a string or an array.
Chainable
setReplyTo(mixed $email) : \Charcoal\Email\EmailInterface
Set email address to reply to the message.
mixed | The sender's "Reply-To" email address. |
If the email is not a string or an array.
Chainable
setSubject(string $subject) : \Charcoal\Email\EmailInterface
Set the email subject.
string | $subject | The email subject. |
If the subject is not a string.
Chainable
setMsgHtml(string $body) : \Charcoal\Email\EmailInterface
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\EmailInterface
Set the email's plain-text message body.
string | $body | The message's text body. |
If the parameter is invalid.
Chainable
setAttachments(array $attachments) : \Charcoal\Email\EmailInterface
Set the email's attachments.
array | $attachments | The file attachments. |
Chainable
addAttachment(mixed $attachment) : \Charcoal\Email\EmailInterface
Add an attachment to the email.
mixed | $attachment | A single file attachment. |
Chainable
setLog(boolean $log) : \Charcoal\Email\EmailInterface
Enable or disable logging for this particular email.
boolean | $log | The log flag. |
Chainable
setTrack(boolean $track) : \Charcoal\Email\EmailInterface
Enable or disable tracking for this particular email.
boolean | $track | The track flag. |
Chainable
setTemplateData(array $data) : \Charcoal\Email\Email
Set the template data for the view.
array | $data | The template data. |
Chainable
viewController() : \Charcoal\Email\TemplateInterface|array
Get the custom view controller for rendering the email's HTML message.
Unlike typical ViewableInterface
objects, the view controller is not
the email itself but an external "email" template.
createConfig() : \Charcoal\Email\EmailConfig
Temporary hack to fulfills the Configurable Interface.
setTemplateFactory(\Charcoal\Factory\FactoryInterface $factory) : \Charcoal\Email\Email
\Charcoal\Factory\FactoryInterface | $factory | The factory to use to create email template objects. |
Chainable
setQueueItemFactory(\Charcoal\Factory\FactoryInterface $factory) : \Charcoal\Email\Email
\Charcoal\Factory\FactoryInterface | $factory | The factory to use to create email queue item objects. |
Chainable
setLogFactory(\Charcoal\Factory\FactoryInterface $factory) : \Charcoal\Email\Email
\Charcoal\Factory\FactoryInterface | $factory | The factory to use to create log objects. |
Chainable