PHP Classes

Getting senders IP

Recommend this page to a friend!

      PHP MIME Email Message Parser  >  All threads  >  Getting senders IP  >  (Un) Subscribe thread alerts  
Subject:Getting senders IP
Summary:Received: from IP address
Messages:2
Author:Jvisser
Date:2009-02-13 11:58:21
Update:2009-02-13 20:25:59
 

  1. Getting senders IP   Reply   Report abuse  
Picture of Jvisser Jvisser - 2009-02-13 11:58:21
Looking at all the returned "Headers" array, it does not look like the "Received: from" is in one.

I'm after the "Received: from" IP address
Is there an easy way to get this value?

Thank you for this great class.

  2. Re: Getting senders IP   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-02-13 20:25:59 - In reply to message 1 from Jvisser
There is no guarantee that you will get the sender IP address from the Received headers.

The class itself does not process the Received headers in any way. I suppose you can do it yourself easily using some regular expressions.