getDefaultReplyTo example

public static function clearDefaultReplyTo()
    {
        self::$_defaultReplyTo = null;
    }

    /** * Sets ReplyTo-name and -email based on the defaults * * @return Zend_Mail Provides fluent interface */
    public function setReplyToFromDefault() {
        $replyTo = self::getDefaultReplyTo();
        if($replyTo === null) {
            throw new Zend_Mail_Exception(
                'No default Reply-To Address set to use');
        }

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

        return $this;
    }

    /** * Sets the Return-Path header of the message * * @param string $email * @return Zend_Mail Provides fluent interface * @throws Zend_Mail_Exception if set multiple times */
Home | Imprint | This part of the site doesn't use cookies.