Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
yii
mail
MessageInterface
embed
yii\mail\MessageInterface::embed PHP Method
MessageInterface Interface Documentation
Show file
Open project: yiisoft/yii2
embed()
public
method
This method should be used when embedding images or other data in a message.
public
embed
(
string
$fileName
,
array
$options
= [] ) :
string
$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.
public function embed($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