PHP Classes

Forwarded message

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  Forwarded message  >  (Un) Subscribe thread alerts  
Subject:Forwarded message
Summary:How to retrieve the sender address of a forwarded message ?
Messages:2
Author:fred wolf
Date:2008-01-07 10:55:41
Update:2008-01-08 05:31:59
 

  1. Forwarded message   Reply   Report abuse  
Picture of fred wolf fred wolf - 2008-01-07 10:55:43
Hello,

Is it possible to retrieve the sender address of a forwarded message ?

Let me give you an example :

UserA sends a message to UserB.
UserB forwards the message to UserC.

I want my application to be able to read messages in the pop account of UserC and to retrieve the address of UserA.

I'm using the POP3 e-mail client class in order to get messages.
Then I parse the messages with the present class.
I obtain address from UserB.

I imagine that I have to parse the parts included in the message so that I could reach my goal and get the UserA address.

But How Can I manage that ?

I tried to concat all parts of the messages (included headers ?), but it still doesn't work ?

Any clue ?

Thanks by advance,

fred

  2. Re: Forwarded message   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-01-08 05:31:59 - In reply to message 1 from fred wolf
If the forwarded message is attached to the new message, you can parse and extract the data of the attached message and then you parse the extract the forwarded message on its own to extract the addresses you want.