src/MimeMailer/MimeMessage.php
public function setFrom($mail = '', $name = null, $reply = true)
    {
        $mail = trim($mail);
        if (strlen($mail) && Helper::isEmail($mail)) {
            $this->from = !empty($name) ? array($name=>$mail) : array($mail);
            $this->getMailer()->setRegistry('Return-Path', '<'.$mail.'>', 'headers');
            $this->getMailer()->setRegistry('X-Sender', $mail, 'headers');
            if ($reply) {
                $this->setReplyTo($mail, $name);
            }
        }
        return $this;
    }
public function setFrom($mail = '', $name = null, $reply = true)
    {
        $mail = trim($mail);
        if (strlen($mail) && Helper::isEmail($mail)) {
            $this->from = !empty($name) ? array($name=>$mail) : array($mail);
            $this->getMailer()->setRegistry('Return-Path', '<'.$mail.'>', 'headers');
            $this->getMailer()->setRegistry('X-Sender', $mail, 'headers');
            if ($reply) {
                $this->setReplyTo($mail, $name);
            }
        }
        return $this;
    }
public function setFrom ( $ mail = '' , $ name = null , $ reply = true ) { $ mail = trim ( $ mail ) ; if ( strlen ( $ mail ) && Helper :: isEmail ( $ mail ) ) { $ this -> from = ! empty ( $ name ) ? array ( $ name => $ mail ) : array ( $ mail ) ; $ this -> getMailer ( ) -> setRegistry ( 'Return-Path' , '<' . $ mail . '>' , 'headers' ) ; $ this -> getMailer ( ) -> setRegistry ( 'X-Sender' , $ mail , 'headers' ) ; if ( $ reply ) { $ this -> setReplyTo ( $ mail , $ name ) ; } } return $ this ; }
Set From field

@param string/array $mail The email address to add, or an array of name=>email pairs
@param string/bool $name The name to show for the email address if there is just one
@param bool $reply Set the "reply-to" to the same address ? (default is TRUE)
@return self
@see \MimeMailer\MimeEmail::checkPeopleArgs
Set From field