- Products
- Purchase
Order Online Maintenance Renewal Resellers - Support
Helpdesk Online Documentation Web Forum - Our Clients
- About
About us Services Contact
From AfterLogic Wiki
The sample connects to the POP3 server transmitting password in encrypted form.
By default, password is transmitted to POP3 server as clear text. If this is undesirable, you can force MailBee to use some sort of secure authentication. Just set AuthMethod property of POP3 object before connecting to the POP3 server.
For example, if AuthMethod=1, MailBee will use APOP secure authentication which is supported by most POP3 servers.
Note: Some servers do not support secure authentication of any kind.
Dim objPOP3 ' Create POP3 object Set objPOP3 = CreateObject("MailBee.POP3") ' Unlock POP3 object objPOP3.LicenseKey = "put your license key here" ' Set POP3 server name objPOP3.ServerName = "mail.server.com" ' Force APOP authentication objPOP3.AuthMethod = 1 ' Set user credentials objPOP3.UserName = "username" objPOP3.Password = "password" ' Connect to the server and log in the mailbox If objPOP3.Connect Then MsgBox "Connected successfully" ' Close the connection objPOP3.Disconnect Else ' Display error information MsgBox "Error #" & objPOP3.ErrCode MsgBox "Server response: " & objPOP3.ServerResponse End If
<% Dim objPOP3 ' Create POP3 object Set objPOP3 = Server.CreateObject("MailBee.POP3") ' Unlock POP3 object objPOP3.LicenseKey = "put your license key here" ' Set POP3 server name objPOP3.ServerName = "mail.server.com" ' Force APOP authentication objPOP3.AuthMethod = 1 ' Set user credentials objPOP3.UserName = "username" objPOP3.Password = "password" ' Connect to the server and log in the mailbox If objPOP3.Connect Then Response.Write "Connected successfully" ' Close the connection objPOP3.Disconnect Else ' Display error information Response.Write "Error #" & objPOP3.ErrCode & "<br>" Response.Write "Server response: " & objPOP3.ServerResponse End If %>
See Also:
AuthMethod Property