Author |
|
mattbrailsford Newbie
Joined: 12 March 2011 Location: United Kingdom
Online Status: Offline Posts: 2
|
Posted: 06 April 2011 at 5:21am | IP Logged
|
|
|
Hi,
Can anybody tell me how I would go about extracting the senders IP address from a
MailMessage?
Many thanks
Matt
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 06 April 2011 at 5:38am | IP Logged
|
|
|
Please check Mime.TimeStamp.From property.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 06 April 2011 at 6:52am | IP Logged
|
|
|
Actually, you'll also need to do some regexp to extract the ip address from there. And some e-mails may have domain name and no ip address there.
There is no single standard for From in Received headers.
Also, you'll need to iterate through the whole collection of MailMessage.TimeStamps as the message may have multiple senders in the chain.
The originating sender will correspond to the last object in MailMessage.TimeStamps.
Regards,
Alex
|
Back to Top |
|
|
mattbrailsford Newbie
Joined: 12 March 2011 Location: United Kingdom
Online Status: Offline Posts: 2
|
Posted: 06 April 2011 at 7:28am | IP Logged
|
|
|
Perfect.
Many thanks
|
Back to Top |
|
|
Antyradary Newbie
Joined: 06 May 2011 Location: United Kingdom
Online Status: Offline Posts: 1
|
Posted: 06 May 2011 at 12:18pm | IP Logged
|
|
|
I check Mime.TimeStamp.From , for me is ok :)
|
Back to Top |
|
|