setData()
setData(array $data) : \Charcoal\Email\Email
Set the email's data.
Parameters
array | $data | The data to set. |
Returns
\Charcoal\Email\Email —Chainable
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. |
Chainable
setTo(string|array $email) : \Charcoal\Email\EmailInterface
Set the recipient email address(es).
string|array | The recipient email address(es). |
Chainable
addTo(mixed $email) : \Charcoal\Email\EmailInterface
Add a recipient email address.
mixed | The recipient email address to add. |
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). |
Chainable
addCc(mixed $email) : \Charcoal\Email\EmailInterface
Add a CC recipient email address.
mixed | The CC recipient email address to add. |
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). |
Chainable
addBcc(mixed $email) : \Charcoal\Email\EmailInterface
Add a BCC recipient email address.
mixed | The BCC recipient email address to add. |
Chainable
setFrom(string|array $email) : \Charcoal\Email\EmailInterface
Set the sender's email address.
string|array | An email address. |
Chainable
setReplyTo(mixed $email) : \Charcoal\Email\EmailInterface
Set email address to reply to the message.
mixed | The sender's "Reply-To" email address. |
Chainable
setSubject(string $subject) : \Charcoal\Email\EmailInterface
Set the email subject.
string | $subject | The email subject. |
Chainable
setMsgHtml(string $body) : \Charcoal\Email\EmailInterface
Set the email's HTML message body.
string | $body | The HTML message body. |
Chainable
setMsgTxt(string $body) : \Charcoal\Email\EmailInterface
Set the email's plain-text message body.
string | $body | The message's text body. |
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