Swift_Mime_Message::setFrom
Set the From address of this message.
It is permissible for multiple From addresses to be set using an array. If multiple From addresses are used, you SHOULD set the Sender address and according to RFC 2822, MUST set the sender address. An array can be used if display names are to be provided: i.e. array('email@address.com' => 'Real Name'). If the second parameter is provided and the first is a string, then $name is associated with the address.
Signature
public function setFrom(mixed
$addresses,
[string
$name = null] )
Parameters
$addresses
— mixed$name
— string- optional