| Author |  | 
      
        | Guests Guest Group
 
  
 
 Joined: 10 November 2003
 Online Status: Online
 Posts: 262
 | 
          Does this component provide a method to store email messages to a folder or mailbox?
           | Posted: 23 February 2004 at 6:49pm | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          MailBee POP3 component allows you to save messages to disk through SaveMessage method of the Message object.
           | Posted: 24 February 2004 at 7:11am | IP Logged |   |  
           | 
 |  
 ASP example follows:
 
 Dim Mailer, Msg
 Set Mailer = Server.CreateObject("MailBee.POP3")
 Mailer.LicenseKey = "put your license key here"
 If Mailer.Connect ("mailserver.com", 110, "MyName", "MyPassword") Then
 If Mailer.MessageCount > 0 Then
 Set Msg = Mailer.RetrieveSingleMessage(1)
 If Not Msg Is Nothing Then
 Msg.SaveMessage "C:\Docs\msg.eml"
 End If
 End If
 Mailer.Disconnect
 End If
 
 | 
       
        | Back to Top |     | 
       
       
        |  |