Swift_Mime_Message::setSender
Set the sender of this message.
If multiple addresses are present in the From field, this SHOULD be set. According to RFC 2822 it is a requirement when there are multiple From addresses, but Swift itself does not require it directly. An associative array (with one element!) can be used to provide a display- name: i.e. array('email@address' => 'Real Name'). If the second parameter is provided and the first is a string, then $name is associated with the address.
Signature
public function setSender(mixed
$address,
[string
$name = null] )
Parameters
$address
— mixed$name
— string- optional