Set Reply-To Header

@param string $email
@param string $name
@return Zend_Mail
@throws Zend_Mail_Exception if called more than one time
966670
public function setReplyTo($email, $name = null)
    {
        if (null !== $this->_replyTo) {
            /**
             * @see Zend_Mail_Exception
             */
            // require_once 'Zend/Mail/Exception.php';
            throw new Zend_Mail_Exception('Reply-To Header set twice');
        }

        $email = $this->_filterEmail($email);
        $name  = $this->_filterName($name);
        $this->_replyTo = $email;
        $this->_storeHeader('Reply-To', $this->_formatAddress($email, $name), true);

        return $this;
    }
800341
public function setFrom($email, $name = null)
    {
        $this->from = $this->transformEmailName($email, $name);

        return $this;
    }
1356957
public function from($email, $name = false)
	{
		$this->config['from']['email'] = (string) $email;
		$this->config['from']['name']  = (is_string($name)) ? $name : false;

		if ($this->config['encode_headers'] and $this->config['from']['name'])
		{
			$this->config['from']['name'] = $this->encode_mimeheader((string) $this->config['from']['name']);
		}

		return $this;
	}
1025166
public function addAddress($email, $name = '')
    {
        if (empty($email)) {
            throw new MailerException('email is required for addAddress!');
        }

        $this->_mailer->addAddress($email, $name);

        return $this;
    }
130001
public function addMailHeader($header, $email, $name = null)
    {
        $address = $this->formatHeader((string) $email, (string) $name);
        $this->_headers[] = sprintf('%s: %s', (string) $header, $address);
        return $this;
    }
1156397
protected function setRecipient($type, $email, $name)
    {
        $this->recipients[$type][$email] = compact('email', 'name');

        return $this;
    }
1364684
public function setFrom($email, $name = null)
    {
        if (null !== $this->_from) {
            /**
             * @see Zend_Mail_Exception
             */
            // require_once 'Zend/Mail/Exception.php';
            throw new Zend_Mail_Exception('From Header set twice');
        }

        $email = $this->_filterEmail($email);
        $name  = $this->_filterName($name);
        $this->_from = $email;
        $this->_storeHeader('From', $this->_formatAddress($email, $name), true);

        return $this;
    }
522968
public function bcc($mail, $name = null)
    {
        $this->mailer->addBCC($mail, $name);
        return $this;
    }
351089
public function cc($email = null, $name = null)
    {
        deprecationWarning('Email::cc() is deprecated. Use Email::setCc() or Email::getCc() instead.');

        if ($email === null) {
            return $this->getCc();
        }

        return $this->setCc($email, $name);
    }
695549
public function from($email, $name = '')
    {
        $value = $this->parseMail($this->filtreEmail($email), $this->filtreName($name));

        return $this->withHeader('from', $value);
    }
1170711
protected function sendMessage($name, $email, $quote)
    {
        $mail = [
            'email'    => $this->email,
            'subject'  => $this->name.' - New Message',
            'platform' => $this->name,
            'url'      => $this->home,
            'contact'  => $email,
            'name'     => $name,
            'quote'    => $quote,
        ];

        $this->mail->queue('contact::message', $mail, function ($message) use ($mail) {
            $message->to($mail['email'])->subject($mail['subject']);
        });
    }
839998
public function addTo($email, $name = null)
    {
        $this->to = array_merge($this->to, $this->transformEmailName($email, $name));

        return $this;
    }
618527
protected function addEmail($field, $email, $name = null)
    {
        if (is_array($email)) {
            foreach ($email as $mail => $name) {
                if (is_numeric($mail)) {
                    $mail = $name;
                    $name = null;
                }

                if ($mail === null) {
                    continue;
                }

                $this->$field($mail, $name);
            }

            return;
        }

        $email = Punycode::toAscii($email);

        $this->{$field}[$email] = $name;
    }
758307
public function setFrom($email, $name = null)
    {
        if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {
            throw new \Parable\Mail\Exception("Email provided is invalid: {$email}");
        }
        $this->addresses['from'] = [
            [
                'email' => $email,
                'name'  => $name,
            ]
        ];
        return $this;
    }
298527
public function add(string $email, string $name = null): void
    {
        $ccRecipient = $this->make();
        $ccRecipient->email = $email;
        if ($name !== null) {
            $ccRecipient->name = $name;
        }
        $this->set($ccRecipient);
    }
265916
public function addCc( $email, $name = null )
	{
		$this->_object->addCc( $email, $name );
		return $this;
	}
1055594
public function setReplyToFromDefault() {
        $replyTo = self::getDefaultReplyTo();
        if($replyTo === null) {
            // require_once 'Zend/Mail/Exception.php';
            throw new Zend_Mail_Exception(
                'No default Reply-To Address set to use');
        }

        $this->setReplyTo($replyTo['email'], $replyTo['name']);

        return $this;
    }