Property | Type | Description | |
---|---|---|---|
$mailer | the mailer instance that created this message. For independently created messages this is null. |
Method | Description | |
---|---|---|
__toString ( ) : string | PHP magic method that returns the string representation of this object. | |
send ( yii\mail\MailerInterface $mailer = null ) : boolean | Sends this email message. |
public __toString ( ) : string | ||
return | string | the string representation of this object. |
public send ( yii\mail\MailerInterface $mailer = null ) : boolean | ||
$mailer | yii\mail\MailerInterface | the mailer that should be used to send this message. If no mailer is given it will first check if [[mailer]] is set and if not, the "mail" application component will be used instead. |
return | boolean | whether this message is sent successfully. |