Метод |
Описание |
|
attach ( string $fileName, array $options = [] ) |
Attaches existing file to the email message. |
|
attachContent ( string $content, array $options = [] ) |
Attach specified content as file for the email message. |
|
embed ( string $fileName, array $options = [] ) : string |
Attach a file and return it's CID source. |
|
embedContent ( string $content, array $options = [] ) : string |
Attach a content as file and return it's CID source. |
|
getBcc ( ) : array |
Returns the Bcc (hidden copy receiver) addresses of this message. |
|
getCc ( ) : array |
Returns the Cc (additional copy receiver) addresses of this message. |
|
getCharset ( ) : string |
Returns the character set of this message. |
|
getFrom ( ) : string |
Returns the message sender. |
|
getReplyTo ( ) : string |
Returns the reply-to address of this message. |
|
getSubject ( ) : string |
Returns the message subject. |
|
getTo ( ) : array |
Returns the message recipient(s). |
|
send ( yii\mail\MailerInterface $mailer = null ) : boolean |
Sends this email message. |
|
setBcc ( string | array $bcc ) |
Sets the Bcc (hidden copy receiver) addresses of this message. |
|
setCc ( string | array $cc ) |
Sets the Cc (additional copy receiver) addresses of this message. |
|
setCharset ( string $charset ) |
Sets the character set of this message. |
|
setFrom ( string | array $from ) |
Sets the message sender. |
|
setHtmlBody ( string $html ) |
Sets message HTML content. |
|
setReplyTo ( string | array $replyTo ) |
Sets the reply-to address of this message. |
|
setSubject ( string $subject ) |
Sets the message subject. |
|
setTextBody ( string $text ) |
Sets message plain text content. |
|
setTo ( string | array $to ) |
Sets the message recipient(s). |
|
toString ( ) : string |
Returns string representation of this message. |
|