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
setFrom
yii\mail\MessageInterface::setFrom PHP Method
MessageInterface Interface Documentation
Show file
Open project: yiisoft/yii2
setFrom()
public
method
Sets the message sender.
public
setFrom
(
string
|
array
$from
)
$from
string
|
array
sender email address. You may pass an array of addresses if this message is from multiple people. You may also specify sender name in addition to email address using format: `[email => name]`.
public function setFrom($from);
MessageInterface
attach
attachContent
embed
embedContent
getBcc
getCc
getCharset
getFrom
getReplyTo
getSubject
getTo
send
setBcc
setCc
setCharset
setFrom
setHtmlBody
setReplyTo
setSubject
setTextBody
setTo
toString