yii\mail\MessageInterface::send PHP Method

send() public method

Sends this email message.
public send ( yii\mail\MailerInterface $mailer = null ) : boolean
$mailer yii\mail\MailerInterface the mailer that should be used to send this message. If null, the "mail" application component will be used instead.
return boolean whether this message is sent successfully.
    public function send(MailerInterface $mailer = null);