Search The ForumSearch   RegisterRegister  LoginLogin

MailBee IMAP4

 AfterLogic Forum : MailBee IMAP4
Subject Topic: Imap login Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 03 June 2005 at 5:59am | IP Logged Quote Guests

HI,
I'm looking for an example, how can I login with an IMAP server using ASP.Could you please tell me how can I do it with the MailBee?
Thanks Erjona
Back to Top View Guests's Profile Search for other posts by Guests
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 03 June 2005 at 8:17am | IP Logged Quote Alex

An example below connects to the specified IMAP account in ASP (also, logging IMAP session into a file is turned on to simplify debugging if connection cannot be established):

Code:

Dim Mailer
Set Mailer = Server.CreateObject("MailBee.IMAP4")

Mailer.EnableLogging = True ' Logging helps to discover any problems
Mailer.LogFilePath = "C:\imap4_log.txt"

Mailer.LicenseKey = "put your license key here"
If Mailer.Connect("mailserver.com", 143, "MyName", "MyPassword") Then
  Response.Write "Connected successfully"
  Mailer.Disconnect
Else
  Response.Write Mailer.ErrDesc
End If


Regards,
Alex
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