2008年9月6日星期六

Re: [fw-core] Zend_Mail Set ReplyTo Address

I can see only the return-path (setReturnPath, getReturnPath) being available to be set and not the reply-to.

Unless I am mistaken you can extend the Mail class to incorporate the functionality you require. I am thinking of something like this:

class My_Mailer extends Zend_Mail
{
    public function addReplyTo($email, $name='')
    {
        $this->_addRecipientAndHeader('ReplyTo', $name, $email);
        return $this;
    }
}

I think this should work although I haven't tested it.

Nikos

On Sat, Sep 6, 2008 at 7:48 PM, bf24 <rfaraj@gmail.com> wrote:


Does anyone know if it's possible to set the replyTo address using
Zend_Mail? I see that I can set the fromName and from Address; however, I'd
like those to be different than the replyTo address. Any ideas?

I've done this previously with phpmailer.

Thanks in advance!
--
View this message in context: http://www.nabble.com/Zend_Mail-Set-ReplyTo-Address-tp19352849p19352849.html
Sent from the Zend Core mailing list archive at Nabble.com.




--
The contents of this message may contain confidential or privileged information and is intended solely for the recipient(s). Use or distribution to and by any other party is not authorized. If you are not the intended recipient, copying, distribution or use of the contents of this information is prohibited.

没有评论: