ZF-6554: need to make forward to an existing email

Issue Type: Improvement Created: 2009-05-06T03:27:12.000+0000 Last Updated: 2011-08-07T12:27:13.000+0000 Status: Open Fix version(s): Reporter: Alex Toader (raffe) Assignee: Dolf Schimmel (Freeaqingme) (freak) Tags: - Zend_Mail_Storage

Related issues: Attachments:


Hi people.

It will be very nice to be able to make forward to an existing email. This will prevent lot of work and bugs like: what will happen if you have an html but set it text? what will happen if you have attachments or is multipart and other.

I searched for this but didnt found anything so please forgive me if this request or feature exists already. Is first time I came here :).

How I see it now:

<pre class="highlight">
//take an existing email
$oldMail = new Zend_Mail_Storage_Imap();

//make new Zend_Mail that can accept a Zend_Mail_Storage_xx object
$mail = new Zend_Mail($oldMail);

//set new to


greets, Alex


Posted by Michael Kliewe (mkliewe) on 2009-05-06T08:28:23.000+0000

This would be very nice. I also have a project where I need to forward a mail (from imap storage).

Because it is not possible with ZF, I have to do it with PEAR.

Posted by Satoru Yoshida (satoruyoshida) on 2010-06-09T00:20:06.000+0000

Sorry, I have been inactive since last April.

Posted by John Kelly (postalservice14) on 2010-12-02T15:43:13.000+0000

As a short term solution, would object cloning work? []

<pre class="highlight">
$mail = clone $oldMail;

Posted by Michael Kliewe (mkliewe) on 2010-12-02T23:56:47.000+0000

The problem is when reading a mail from an IMAP server you get a Zend_Mail_Message object, but for sending a mail you need a Zend_Mail object. And there is no easy convert function for that.

Perhaps the problem is now a bit more clear.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.