$smtp
$smtp : boolean
Whether SMTP should be used.
Email configuration.
setSmtp(boolean $smtp) : \Charcoal\Email\EmailConfig
Set whether SMTP should be used for sending the email.
boolean | $smtp | If the email should be sent using SMTP or not. |
If the SMTP state is not a boolean.
Chainable
setSmtpHostname(string $hostname) : \Charcoal\Email\EmailConfig
Set the SMTP hostname to be used.
string | $hostname | The SMTP hostname. |
If the SMTP hostname is not a string.
Chainable
setSmtpPort(integer $port) : \Charcoal\Email\EmailConfig
Set the SMTP port to be used.
integer | $port | The SMTP port. |
If the SMTP port is not an integer.
Chainable
setSmtpAuth(boolean $auth) : \Charcoal\Email\EmailConfig
Set whether SMTP requires authentication.
boolean | $auth | The SMTP authentication flag (if auth is required). |
Chainable
setSmtpUsername(string $username) : \Charcoal\Email\EmailConfig
Set the SMTP username to be used.
string | $username | The SMTP username, if using authentication. |
If the SMTP username is not a string.
Chainable
setSmtpPassword(string $password) : \Charcoal\Email\EmailConfig
Set the SMTP password to be used.
string | $password | The SMTP password, if using authentication. |
If the SMTP password is not a string.
Chainable
setSmtpSecurity(string $security) : \Charcoal\Email\EmailConfig
Set the SMTP security type to be used.
string | $security | The SMTP security type (empty, "TLS", or "SSL"). |
If the security type is not valid (empty, "TLS", or "SSL").
Chainable
setDefaultFrom(string|array $email) : \Charcoal\Email\EmailConfig
Set the default sender's email address.
string|array | The default "From" email address. |
If the email address is invalid.
Chainable
setDefaultReplyTo(string|array $email) : \Charcoal\Email\EmailConfig
Set the default "Reply-To" email address.
string|array | The default "Reply-To" email address. |
If the email address is invalid.
Chainable
setDefaultLog(boolean $log) : \Charcoal\Email\EmailConfig
Set whether the email should be logged by defaultd.
boolean | $log | The default log flag. |
Chainable
setDefaultTrack(boolean $track) : \Charcoal\Email\EmailConfig
Set whether the email should be tracked by default.
boolean | $track | The default track flag. |
Chainable