mail\MessageInterface setHtmlBody()

setHtmlBody() public abstract method Sets message HTML content. public abstract $this setHtmlBody ( $html )$html string Message HTML content. return $this Self reference.

mail\MessageInterface setCharset()

setCharset() public abstract method Sets the character set of this message. public abstract $this setCharset ( $charset )$charset string Character set name. return $this Self reference.

mail\MessageInterface setFrom()

setFrom() public abstract method Sets the message sender. public abstract $this setFrom ( $from )$from string|array Sender email address. You may pass an array of addresses if this message is from multiple people. You may also specify sender name in addition to email address using format: [email => name]. return $this Self reference.

mail\MessageInterface setBcc()

setBcc() public abstract method Sets the Bcc (hidden copy receiver) addresses of this message. public abstract $this setBcc ( $bcc )$bcc string|array Hidden copy receiver email address. You may pass an array of addresses if multiple recipients should receive this message. You may also specify receiver name in addition to email address using format: [email => name]. return $this Self reference.

mail\MessageInterface setCc()

setCc() public abstract method Sets the Cc (additional copy receiver) addresses of this message. public abstract $this setCc ( $cc )$cc string|array Copy receiver email address. You may pass an array of addresses if multiple recipients should receive this message. You may also specify receiver name in addition to email address using format: [email => name]. return $this Self reference.

mail\MessageInterface getTo()

getTo() public abstract method Returns the message recipient(s). public abstract array getTo ( )return array The message recipients

mail\MessageInterface getReplyTo()

getReplyTo() public abstract method Returns the reply-to address of this message. public abstract string getReplyTo ( )return string The reply-to address of this message.

mail\MessageInterface send()

send() public abstract method Sends this email message. public abstract boolean send ( yii\mail\MailerInterface $mailer = null )$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.

mail\MessageInterface getSubject()

getSubject() public abstract method Returns the message subject. public abstract string getSubject ( )return string The message subject

mail\MessageInterface getBcc()

getBcc() public abstract method Returns the Bcc (hidden copy receiver) addresses of this message. public abstract array getBcc ( )return array The Bcc (hidden copy receiver) addresses of this message.