PBNISMTP


PBNISMTP is a control originally written by Bruce Armstrong that wraps an open source SMTP Email C++ class. Several changes have been made by myself and by others.

PB 10.5 sample app and 32bit/64bit versions of the pbx file:
Download PBNISMTP  (3,684 KB)

Complete Visual Studio 2019 solution folder:
Download PBNISMTP Visual Studio  (29,660 KB)

May 11, 2022 - Changes by Roland Smith:

  • Upgraded to Visual Studio 2019.
  • Updated to use v3.45 (3 April 2022) of the CSMTPConnection open source SMTP library.
  • Updated to use v1.22 (27 February 2022) of the SSLWrappers open source SSL library.
  • Updated to use v1.16 (26 February 2022) of the CryptoWrappers open source crypto library.
  • TLS v1.3 is supported. Please note that TLS v1.3 is only available on Windows 11 or Windows Server 2022 or later.
  • Added function SetHeader to add a custom header. This can be used to set Message-ID.

Nov 16, 2020 - Changes by Roland Smith:

  • Updated to use v3.41 (13 September 2020) of the CSMTPConnection open source SMTP library.
  • Updated to use v1.19 (6 November 2020) of the SSLWrappers open source SSL library.

Nov 10, 2018 - Changes by Roland Smith:

  • Added function SetMailerName to override the default xMailer property which is 'PBNISMTP 3.6'.
  • Added additional priority functions: SetPriorityNone, SetPriorityLow, SetPriorityNormal, and SetPriorityHigh.
  • Added Content-ID for attachments so that you can embed them in HTML.

Sep 15, 2018 - Changes by Roland Smith:

  • Updated to use the latest version of the CSMTPConnection open source SMTP library.

Jun 23, 2018 - Changes by Roland Smith:

  • Updated to use the latest version of the CSMTPConnection open source SMTP library.
  • Added the SetReadReceiptRequested method.

Feb 1, 2018 - Changes by Oswaldo Varela:

  • Split out the Connect, Send, and Disconnect steps into separate functions so that you can send multiple emails in bulk and only have to connect and disconnect once.

Feb 1, 2018 - Changes by Roland Smith:

  • Created a new Bulk Email tab in the example to show off Oswaldo's change.

Jun 23, 2017 - Changes by Roland Smith:

  • Rewrote the PowerBuilder sample app from scratch in PB 10.5 adding a decendant object with helper functions.
  • Updated to use the latest version of the CSMTPConnection open source SMTP library.
  • Removed '125' from the filename as it is not PB version specific.
  • Now produces 32bit and 64bit versions of pbnismtp.pbx.
  • Added the SetPriority method.