PHP Classes

Parse message and forward it

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  Parse message and forward it  >  (Un) Subscribe thread alerts  
Subject:Parse message and forward it
Summary:Parse the message, forward and delete it.
Messages:2
Author:Juan Alvarez
Date:2015-06-11 14:54:41
 

  1. Parse message and forward it   Reply   Report abuse  
Picture of Juan Alvarez Juan Alvarez - 2015-06-11 14:54:41
Hi, excelent class.

Just now i am parsing messages and if some conditions matches in the email i do some process and then delete the email.
This works great.

Sometimes there are conditions in the email that not matches what i want, and i need to delete the message but not want to loose that message.

So i need to forward this message to another email account to analyze message by hand.

How can i do this ?
Regards, Juan

  2. Re: Parse message and forward it   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2015-06-12 01:30:19 - In reply to message 1 from Juan Alvarez
I think the simplest solution is to forward the whole message as an attachment of MIME type message/rfc822 .

Try this class to compose the message to forward:

phpclasses.org/mimemessage