/** * Sets the name and email of the "From" header. * * The function name setSender is misleading since there is * also a "Sender" header which is not set by this method * * @param string $email * @param string $name */ public function setSender($email, $name) { if (!empty($email)) { $this->emailObj->setFrom($email, $name); } }