$type
$type : string
Type of log (e.g., "email").
Email log
setType(string $type) : \Charcoal\Email\EmailLog
Set the type of log.
string | $type | The log type. (e.g., "email"). |
If the log type is not a string.
Chainable
setAction(string $action) : \Charcoal\Email\EmailLog
Set the logged action.
string | $action | The log action (e.g., "send"). |
If the action is not a string.
Chainable
setRawResponse(mixed $res) : \Charcoal\Email\EmailLog
Set the raw response from the mailer.
mixed | $res | The response object or array. |
Chainable
setMessageId(string $messageId) : \Charcoal\Email\EmailLog
Set the Message-ID.
string | $messageId | The Message-ID. |
If the Message-ID is not a string.
Chainable
setCampaign(string $campaign) : \Charcoal\Email\EmailInterface
Set the campaign ID.
string | $campaign | The campaign identifier. |
If the campaign is invalid.
Chainable
setFrom(string|array $email) : \Charcoal\Email\EmailLog
Set the sender's email address.
string|array | An email address. |
If the email address is invalid.
Chainable
setTo(string|array $email) : \Charcoal\Email\EmailLog
Set the recipient's email address.
string|array | An email address. |
If the email address is invalid.
Chainable
setSubject(string $subject) : \Charcoal\Email\EmailLog
Set the email subject.
string | $subject | The email subject. |
If the subject is not a string.
Chainable
setSendDate(null|string|\DateTime $ts) : \Charcoal\Email\EmailLog
null|string|\DateTime | $ts | The "send date" datetime value. |
If the ts is not a valid datetime value.
Chainable
setIp(mixed $ip) : \Charcoal\Email\EmailLog
mixed | $ip | The IP adress. |
Chainable
setSessionId(string $sessionId) : \Charcoal\Email\EmailLog
string | $sessionId | The session identifier. |
Chainable