swiftmailer\Message embedContent()

embedContent() public method Attach a content as file and return it's CID source. This method should be used when embedding images or other data in a message. public string embedContent ( $content, array $options = [] )$content string Attachment file content. $options array Options for embed file. Valid options are: fileName: name, which should be used to attach file. contentType: attached file MIME type. return string Attachment CID.

swiftmailer\Message embed()

embed() public method Attach a file and return it's CID source. This method should be used when embedding images or other data in a message. public string embed ( $fileName, array $options = [] )$fileName string File name. $options array Options for embed file. Valid options are: fileName: name, which should be used to attach file. contentType: attached file MIME type. return string Attachment CID.

swiftmailer\Message createSwiftSigner()

createSwiftSigner() protected method (available since version 2.0.6) Creates signer from its configuration protected \Swift_Signer createSwiftSigner ( $signature )$signature array Signature configuration return \Swift_Signer Signer instance throws yii\base\InvalidConfigException on invalid configuration provided

swiftmailer\Message createSwiftMessage()

createSwiftMessage() protected method Creates the Swift email message instance. protected \Swift_Message createSwiftMessage ( )return \Swift_Message Email message instance.

swiftmailer\Message attachContent()

attachContent() public method Attach specified content as file for the email message. public $this attachContent ( $content, array $options = [] )$content string Attachment file content. $options array Options for embed file. Valid options are: fileName: name, which should be used to attach file. contentType: attached file MIME type. return $this Self reference.

swiftmailer\Message attach()

attach() public method Attaches existing file to the email message. public $this attach ( $fileName, array $options = [] )$fileName string Full file name $options array Options for embed file. Valid options are: fileName: name, which should be used to attach file. contentType: attached file MIME type. return $this Self reference.

swiftmailer\Message addSignature()

addSignature() public method (available since version 2.0.6) Adds message signature. public $this addSignature ( $signature )$signature array|callable|\Swift_Signer Signature specification, this can be: \Swift_Signer instance callable, which returns \Swift_Signer instance configuration array for the signer creation return $this Self reference throws yii\base\InvalidConfigException on invalid signature configuration

swiftmailer\Message addHeader()

addHeader() public method (available since version 2.0.6) Adds custom header value to the message. Several invocations of this method with the same name will add multiple header values. public $this addHeader ( $name, $value )$name string Header name. $value string Header value. return $this Self reference.

swiftmailer\Message $to

$to public property The message recipients public array getTo ( )public $this setTo ( $to )

swiftmailer\Message $textBody

$textBody public write-only property Message plain text content. public $this setTextBody ( $text )