About SMTP

PowerBuilder provides SMTPClient and MimeMessage objects for SMTP transmission of emails.

With the SMTP integration, your PowerBuilder applications can:

  • Send email through PowerBuilder code without relying on third-party controls

  • Connect to a mail server for email services directly

  • Set proxy in the proxy settings

  • Supports SMTP and SMTPS protocols.

  • Supports HTML and plain text format.

  • Supports using any of the following connection types: None (Plain text); STARTTLS, and Auto STARTTLS.

  • Support these authentication types: None, Auto, CRAM-MD5, LOGIN, PLAIN, NTLM, and XOAUTH2. For the XOAUTH2 authentication, you can specify the XOAUTH2 access token for the SMTPClient object; The other authentication types are automatically detected when the client connects to the server.

  • Interact with email server in asynchronous mode.

  • Send Text or HTML based email content and attachments.

  • Specify email priority and content encoding