Search The ForumSearch   RegisterRegister  LoginLogin

MailBee IMAP4

 AfterLogic Forum : MailBee IMAP4
Subject Topic: How to get server greeting? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
OptionExplicit
Newbie
Newbie


Joined: 06 December 2007
Online Status: Offline
Posts: 8
Posted: 06 December 2007 at 2:51pm | IP Logged Quote OptionExplicit

Mulberry shows these details of an IMAP account:

Greeting: * OK Dovecot ready.

Can I get this greeting with MailBee IMAP ActiveX? I want to find out if the IMAP server I'm connected to is Dovecot or Courier.

Regards!
Back to Top View OptionExplicit's Profile Search for other posts by OptionExplicit
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 07 December 2007 at 6:55am | IP Logged Quote Andrew

It's possible in MailBee Objects 5.5:

Code:
Dim Mailer

Set Mailer = CreateObject("MailBee.IMAP4")

Mailer.LicenseKey = "put your license key here"

Mailer.ServerName = "mailserver.com"
Mailer.AuthMethod = 16
Mailer.Connect

MsgBox Mailer.ServerResponse

Mailer.Disconnect


"IMAP.AuthMethod = 16" makes the trick. It forces MailBee IMAP component to connect to IMAP server without logging in, so you're able to get IMAP greeting via IMAP.ServerResponse property. However, it's not possible to perform login in such case and you have to disconnect from the server. If you need to login, you should connect again with "IMAP.AuthMethod = 0".


Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 
OptionExplicit
Newbie
Newbie


Joined: 06 December 2007
Online Status: Offline
Posts: 8
Posted: 07 December 2007 at 8:17am | IP Logged Quote OptionExplicit

Andrew, thank you very much for your very helpful answer!
Yes, "IMAP.AuthMethod = 16" does the trick and is working really fine!

Thanks again!
Back to Top View OptionExplicit's Profile Search for other posts by OptionExplicit
 

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