hb_SendMail / tip_MailSend and CDO
Posted: Thu Dec 08, 2016 11:14 pm
This is a step-by-step guide on how to use hb_SendMail and tip_MailSend.
Both functions require two libraries: hbtip and hbssl that are already in the HMG Harbour lib folder.
These need to be included in your project .hbc file.
Also need 2 external libraries that are named after files: libeay32.dll and ssleay32.dll. They also need to be included in your project .hbc file.
These libraries are available for use in the HMG 3.4.3 release so you do not have to download them again.
But in case you want to use a later version of HMG and with changes to the functions in Harbour.
You can download it from: http://slproweb.com/products/Win32OpenSSL.html
If you want to download to use HMG in 64bit, choose the appropriate file.
In this version is available as I said earlier for the HMG version 3.4.3 in 32bits and was downloaded as indicated in the figure below:
Please note that I have not downloaded the first one because it is a more current version and is for the modified functions of Harbour (Viktor version, not the one we use).
Libraries should be included in the hbc file of your project as follows:
libs=hbtip
libs=hbssl
libs=libeay32
libs=ssleay32
You can edit the hbc file or put it in the IDE as follows:
After you download the SSL installation package, you install it in a folder on your computer as shown in the sequence of figures below:
The installation will occur (if you do not rename) normally in the folder: OpenSSL-Win32, there are the two dll files that need to be copied into the folder of your project.
Now just compile, either through the IDE or the command line with Build.bat
Both functions require two libraries: hbtip and hbssl that are already in the HMG Harbour lib folder.
These need to be included in your project .hbc file.
Also need 2 external libraries that are named after files: libeay32.dll and ssleay32.dll. They also need to be included in your project .hbc file.
These libraries are available for use in the HMG 3.4.3 release so you do not have to download them again.
But in case you want to use a later version of HMG and with changes to the functions in Harbour.
You can download it from: http://slproweb.com/products/Win32OpenSSL.html
If you want to download to use HMG in 64bit, choose the appropriate file.
In this version is available as I said earlier for the HMG version 3.4.3 in 32bits and was downloaded as indicated in the figure below:
Please note that I have not downloaded the first one because it is a more current version and is for the modified functions of Harbour (Viktor version, not the one we use).
Libraries should be included in the hbc file of your project as follows:
libs=hbtip
libs=hbssl
libs=libeay32
libs=ssleay32
You can edit the hbc file or put it in the IDE as follows:
After you download the SSL installation package, you install it in a folder on your computer as shown in the sequence of figures below:
The installation will occur (if you do not rename) normally in the folder: OpenSSL-Win32, there are the two dll files that need to be copied into the folder of your project.
Now just compile, either through the IDE or the command line with Build.bat