Author |
|
Guests Guest Group
Joined: 10 November 2003
Online Status: Online Posts: 262
|
Posted: 03 June 2005 at 5:59am | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 03 June 2005 at 8:17am | IP Logged
|
|
|
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 |
|
|