PHP Класс yii\mail\BaseMessage

By default, BaseMessage::send will use the "mail" application component to send the current message. The "mail" application component should be a mailer instance implementing MailerInterface.
См. также: BaseMailer
С версии: 2.0
Автор: Paul Klimov ([email protected])
Наследование: extends yii\base\Object, implements yii\mail\MessageInterface
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$mailer the mailer instance that created this message. For independently created messages this is null.

Открытые методы

Метод Описание
__toString ( ) : string PHP magic method that returns the string representation of this object.
send ( yii\mail\MailerInterface $mailer = null ) : boolean Sends this email message.

Описание методов

__toString() публичный Метод

PHP magic method that returns the string representation of this object.
public __toString ( ) : string
Результат string the string representation of this object.

send() публичный Метод

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 no mailer is given it will first check if [[mailer]] is set and if not, the "mail" application component will be used instead.
Результат boolean whether this message is sent successfully.

Описание свойств

$mailer публичное свойство

the mailer instance that created this message. For independently created messages this is null.
public $mailer