Knowledge Base

Can MailBee SMTP (ActiveX) send messages through allows using SSL connections only. You should make sure you can check mail via Outlook Express or Mozilla Thunderbird and then apply the same settings to MailBee. The following link describes SSL and other settings for

To learn how to enable SSL in MailBee ActiveX, see SMTP.SSL property documentation.

Please pay your attention to SSL.UseStartTLS property:

- set SSL.UseStartTLS to false when you need to establish SSL connection over dedicated SMTP port (465);

- set SSL.UseStartTLS to true when you need to establish SSL connection over regular SMTP port (25 or 587).

The following sample code allows sending mail via SMTP service:

Dim Mailer, SSL
Set Mailer = CreateObject("MailBee.SMTP")
Set SSL = CreateObject("MailBee.SSL")

Mailer.EnableLogging = True
Mailer.LogFilePath = "D:\test\live_smtp.txt"

Mailer.LicenseKey = "trial or permanent license key"
SSL.LicenseKey = "trial or permanent license key"
Set Mailer.SSL = SSL
Mailer.SSL.UseStartTLS = True
Mailer.ServerName = ""
Mailer.PortNumber = 587
Mailer.Message.ToAddr = ""
Mailer.AuthMethod = 2
Mailer.UserName = ""
Mailer.Password = "password"
Mailer.Message.FromAddr = ""
Mailer.Message.Subject = "Hello"
Mailer.Message.BodyText = "TestMessage"

If Mailer.Send Then
  MsgBox "Sent successfully"
  MsgBox "Error #" & Mailer.ErrCode & ", " & Mailer.ErrDesc
End If