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