Search The ForumSearch   RegisterRegister  LoginLogin

MailBee POP3

 AfterLogic Forum : MailBee POP3
Subject Topic: Object required on Msgs.Count Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Vladimir
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 26 April 2006 at 1:03pm | IP Logged Quote Vladimir

When I run the following code:

Set Mailer = CreateObject("MailBee.POP3")
Mailer.LicenseKey = "MyKey"
Mailer.Connect HOST, PORT, USERNAME, PASSWORD
Set Msgs = Mailer.RetrieveHeaders

TOTAL = Msgs.Count

It brokes on the last line (Msgs.Count)

Microsoft VBScript runtime error '800a01a8'
Object required

When I remove the line it goes fine with no errors, so it creates the MailBee.POP3 with no problems. Seem like the Mailer.RetrieveHeaders fails for some reason.
Back to Top View Vladimir's Profile Search for other posts by Vladimir
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 26 April 2006 at 1:12pm | IP Logged Quote Alex

To programmatically check for errors, use .IsError or .ErrCode properties of POP3 object. You can find samples in C:\Program Files\MailBee\Samples folder (or wherever you installed MailBee Objects).

To quickly check what exactly is going wrong, you can enable logging into a file and then examine the log file:

Code:

Set POP3 = CreateObject("MailBee.POP3")
POP3.EnableLogging = True
POP3.LogFilePath = "C:\log.txt"
...


Make sure your application has appropriate permissions to write into the specified location.

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
Vladimir
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 26 April 2006 at 1:44pm | IP Logged Quote Vladimir

Thanks, figured it out :)
Back to Top View Vladimir's Profile Search for other posts by Vladimir
 

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