homepage Welcome to WebmasterWorld Guest from 54.205.241.107
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
imap header
nick patrick

5+ Year Member



 
Msg#: 3840954 posted 8:14 am on Feb 3, 2009 (gmt 0)

i need a little help with this
i want to get ip address of sender using php
when i checked the mail header its showing the ip
Received: from [xx.xx.#*$!.#*$!]....
but i can't getting the object value to get the ip with php
for example if i want to get from line so 'fromaddress' what for sender IP ?

i am sure you got my point if you know amount imap

 

nick patrick

5+ Year Member



 
Msg#: 3840954 posted 7:19 am on Feb 4, 2009 (gmt 0)

no one knows ?

coopster

WebmasterWorld Administrator coopster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3840954 posted 2:00 pm on Feb 4, 2009 (gmt 0)

Return the object value (CAST as type string) using imap_headerinfo [php.net] and a regular expression to extract the information you desire.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved