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