Back to Samples

SMTP/IMAP/POP3 over SSL and certificates

Lets you specify client SSL certificate, and displays SMTP/IMAP/POP3 server certificate.

If you just need to connect to SSL-enabled e-mail server, use samples in SMTP or IMAP and POP3 sections.


MailBee.NET License Key:
SMTP/IMAP/POP3 Server Name:

Regular ports: SMTP=25, IMAP=143, POP3=110. Dedicated SSL ports: SMTP=465, IMAP=993, POP3=995.
Port:

"Autodetect" setting uses server name (e.g. imap.gmail.com) or port number (e.g. 465) to set SSL mode.
SSL mode:

SSL protocol:

         If unchecked, just connects and then disconnects (no authentication).
User Account Name:
User Account Password:

Select your private certificate (.PFX or .P12 file) to connect to the server.
Your private key won't be transmitted to the server!
Note that most servers do not require you to present client certificate at all.
Private Certificate (optional):
PFX/P12 Password:

Automatically checks if the server's certificate can be trusted (you can also validate it manually in your code).
 

If it reads "valid from" or "valid to" here, it does not yet mean the certificate is actually valid.
Server certificate details: