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,577 KB)

Complete Visual Studio 2019 solution folder:
Download PBNISMTP Visual Studio  (59,030 KB)

July 1, 2023 - Changes by Roland Smith:

  • Updated to use v3.47 (26 May 2023) of the CPJNSMTPConnection open source SMTP library.
  • Updated to use v1.23 (7 May 2023) of the SSLWrappers open source SSL library.
  • Updated to use v1.17 (7 May 2023) of the CryptoWrappers open source crypto library.
  • Updated to use v1.11 (28 May 2022) of the SocMFC open source sockets library.

May 11, 2022 - Changes by Roland Smith:

  • Upgraded to Visual Studio 2019.
  • Updated to use v3.45 (3 April 2022) of the CPJNSMTPConnection 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 CPJNSMTPConnection 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:

Jun 23, 2018 - Changes by Roland Smith:

  • Updated to use the latest version of the CPJNSMTPConnection 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 CPJNSMTPConnection 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.