| Author |  | 
      
        | iconbill Valued Community Member
 
  
 
 Joined: 07 March 2007
 Location: Netherlands
 Online Status: Offline
 Posts: 76
 | 
          Hello,
           | Posted: 13 September 2007 at 7:05am | IP Logged |   |  
           | 
 |  
 I need to known the date when a message has been received by the mail-server.
 
 When I use the property '.DATE' I get the header 'DATE' and NOT the date from
 the mail-server.
 
 Example with the headers below:
 When I read 'Message.Date' the result is => Thu, 13 Sep 2007 15:49:26 +0200
 
 But when you take a good look at the header, you can see this message was received
 by the mail server on: "Thu, 13 Sep 2007 15:48:57 +0200"
 
 In my opinion this is the real received date.
 
 Could you tell me how to read this date with Mailbee Object component?
 
 Kind regards,
 
 Marco Smeets
 
 ---------------EXAMPLE HEADER --------------------
 Received: from ikwilhet.nl
 by mail.fakemailserver.com (Mail Server) with ESMTP id SWJ30357
 for <test@fakedomain.com>; Thu, 13 Sep 2007 15:48:57 +0200
 Received: from localhost ([127.0.0.1])
 by ikwilhet.nl (VisNetic.MailServer.v8.3.5.0) with SMTP id SWK73326
 for <test@fakedomain.com>; Thu, 13 Sep 2007 15:49:26 +0200
 Date: Thu, 13 Sep 2007 15:49:26 +0200
 From: Marco etccccccccccccc
 etcccccc
 ---------------EXAMPLE HEADER --------------------
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Andrew AfterLogic Support
 
  
 
 Joined: 28 April 2006
 Location: United States
 Online Status: Offline
 Posts: 1189
 | 
          If your mail server supports IMAP protocol, the most simple way is to use Envelope.Date property.
           | Posted: 14 September 2007 at 6:34am | IP Logged |   |  
           | 
 |  
 In case with POP3 protocol, you have to parse Message.Received property value manually because POP3 protocol doesn't allow getting the date when the message was received.
 
 
 Best regards,
 Andrew
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | iconbill Valued Community Member
 
  
 
 Joined: 07 March 2007
 Location: Netherlands
 Online Status: Offline
 Posts: 76
 | 
          Thank you Andrew,
           | Posted: 18 September 2007 at 12:58am | IP Logged |   |  
           | 
 |  
 with some tricks in ASP I could read the receive date from the last 'received' server!
 
 Marco
 | 
       
        | Back to Top |     | 
       
       
        |  |