PHP Classes

forward email with IMAP in PHP

Recommend this page to a friend!

      IMAP  >  All threads  >  forward email with IMAP in PHP  >  (Un) Subscribe thread alerts  
Subject:forward email with IMAP in PHP
Summary:is there a simple way?
Messages:3
Author:Pawel ZSEDC
Date:2008-10-05 17:33:22
Update:2012-03-30 08:03:34
 

  1. forward email with IMAP in PHP   Reply   Report abuse  
Picture of Pawel ZSEDC Pawel ZSEDC - 2008-10-05 17:33:22
Hi

I am looking for a simple way to forward emails (also HTML and attachments)using IMAP and PHP. I believe that there is a way to do it within a few lines.

Thanks for your help.
Greetings to phpclasses.org team

Pawel

  2. Re: forward email with IMAP in PHP   Reply   Report abuse  
Picture of Anders Jenbo Anders Jenbo - 2009-12-22 13:30:54 - In reply to message 1 from Pawel ZSEDC
You can use this class to retrive the mail you want from the server, then split up the header and body of the mail.

Setup a new header and feed the body to phpMailer

  3. Re: forward email with IMAP in PHP   Reply   Report abuse  
Picture of Anders Jenbo Anders Jenbo - 2012-03-30 08:03:34 - In reply to message 1 from Pawel ZSEDC
If you are still interested in this my rewrite of this function has the ablility to append email. You could then just fetch the mail from your old email account and append them to your new:
github.com/AJenbo/PHP-imap