Search The ForumSearch   RegisterRegister  LoginLogin

MailBee POP3

 AfterLogic Forum : MailBee POP3
Subject Topic: Store messages to disk Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Jeff Wells
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 23 February 2004 at 6:49pm | IP Logged Quote Jeff Wells

Does this component provide a method to store email messages to a folder or mailbox?
Back to Top View Jeff Wells's Profile Search for other posts by Jeff Wells
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 24 February 2004 at 7:11am | IP Logged Quote Alex

MailBee POP3 component allows you to save messages to disk through SaveMessage method of the Message object.

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

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