Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
yii
mail
MessageInterface
attach
yii\mail\MessageInterface::attach PHP Method
MessageInterface Interface Documentation
Exibir arquivo
Open project: yiisoft/yii2
attach()
public
method
Attaches existing file to the email message.
public
attach
(
string
$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.
public function attach($fileName, array $options = []);
MessageInterface
attach
attachContent
embed
embedContent
getBcc
getCc
getCharset
getFrom
getReplyTo
getSubject
getTo
send
setBcc
setCc
setCharset
setFrom
setHtmlBody
setReplyTo
setSubject
setTextBody
setTo
toString