yii\mail\MessageInterface::setFrom PHP Method

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);