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.

doc_Yii
2016-10-30 17:12:54
Comments
Leave a Comment

Please login to continue.