Email Add-On Sample C++


This Email Add-on Sample helps you to send printed images in emails easily.  After printing sample application will be launched and the user can input the recipients email address.  The Email Add-on Sample logs into a specified SMTP email server and send the converted document as an attachment. The sample using the default SMTP port, TCP port 25, and try to connect to the SMTP server without using SSL.


This sample can be compiled using both Visual Studio 6 and Visual Studio 2005 using the appropriate project files.




Email Configuration INI File:

The E-mail Add-on sample can read the email configuration from the SampleSettings.INI file, If the INI file is in the same directory as the sample.


The INI file structure with the email configuration should be the following:



[E-mail add-on]

SMTP Server=




For example:

[E-mail add-on]


Subject=Test email with BISMailVC


The Sample sends the email after the data (SMTP Server, Recipients, Subject, From) is written into the INI file.

Trying the Sample:

Open the Black Ice printer driver’s Printing Preferences window, on the Start Application tab, check Enable Start Application and choose E-mail add-on C++ Sample.exe from the Samples folder. Select Start After Printing and check Pass Parameters. Leave the parameters in their default order and make sure the Disable Group File option is unchecked under Filename Generation tab.


Sample Source Code Folder Location:

<RTK Installation Folder>\<RTK 32/64 bit>\Samples\Sample Source Codes\C++\E-mail add-on C++ Sample


Not available in Demo RTK.


Solution files


E-mail add-on C++ Sample_VS2005.sln

Visual Studio 2005

E-mail add-on C++ Sample _VS2010.sln

Visual Studio 2010

E-mail add-on C++ Sample _VS2012.sln

Visual Studio 2012

E-mail add-on C++ Sample _VS2013.sln

Visual Studio 2013

E-mail add-on C++ Sample _VS2015.sln

Visual Studio 2015



Note: Please make sure that you use the appropriate Resource ToolKit, there are two different RTKs.

- API/RTK for 32/64 bit Windows 10, 8.1, 7, Vista, XP

- API/RTK for 32/64 bit Windows Server 2012/2008 R2/2008/2003