Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: Get senders IP Address Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mattbrailsford
Newbie
Newbie


Joined: 12 March 2011
Location: United Kingdom
Online Status: Offline
Posts: 2
Posted: 06 April 2011 at 5:21am | IP Logged Quote mattbrailsford

Hi,

Can anybody tell me how I would go about extracting the senders IP address from a
MailMessage?

Many thanks

Matt
Back to Top View mattbrailsford's Profile Search for other posts by mattbrailsford
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6095
Posted: 06 April 2011 at 5:38am | IP Logged Quote Igor

Please check Mime.TimeStamp.From property.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 06 April 2011 at 6:52am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 
mattbrailsford
Newbie
Newbie


Joined: 12 March 2011
Location: United Kingdom
Online Status: Offline
Posts: 2
Posted: 06 April 2011 at 7:28am | IP Logged Quote mattbrailsford

Perfect.

Many thanks
Back to Top View mattbrailsford's Profile Search for other posts by mattbrailsford
 
Antyradary
Newbie
Newbie
Avatar

Joined: 06 May 2011
Location: United Kingdom
Online Status: Offline
Posts: 1
Posted: 06 May 2011 at 12:18pm | IP Logged Quote Antyradary

I check Mime.TimeStamp.From , for me is ok :)
Back to Top View Antyradary's Profile Search for other posts by Antyradary Visit Antyradary's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide