mail\MessageInterface attach()

attach() public abstract method

Attaches existing file to the email message.

public abstract $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.

doc_Yii
2016-10-30 17:07:11
Comments
Leave a Comment

Please login to continue.