Date Property


When the message is returned by MailBee.POP3 object, contains value of "Date" header (or empty string if this header is missing).

Typical example is: Mon, 20 Oct 2003 11:46:07 -0800


Value Type: String
Parameters: None 

Usage example:

Dim Mailer, Msg
'Using visual basic to create object
Set Mailer = CreateObject("MailBee.POP3")
'Using ASP to create object
'Set Mailer = Server.CreateObject("MailBee.POP3")
'In ASP use Response.Write instead of MsgBox
Mailer.LicenseKey = "put your license key here"
Mailer.Connect "mailserver.com", 110, "MyName", "MyPassword"
If Mailer.Connected Then
   If Mailer.MessageCount > 0 Then
      Set Msg = Mailer.RetrieveSingleMessage(1)
      If Not Msg Is Nothing Then
        MsgBox "Date as it appears in the header: " & Msg.Date
        MsgBox _
          "Local date (relative to the current locale and timezone):" & _
          Msg.GetDateFromString(Msg.Date)
      End If
   End If
   Mailer.Disconnect
End If

See Also:

Message Object
GetDateFromString Method


Copyright © 2002-2024, AfterLogic Corporation. All rights reserved.