FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour To Antonio : Email feature from Preview
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
To Antonio : Email feature from Preview
Posted: Tue Jun 02, 2015 04:49 PM
I saw we can send a email from Preview Report but the procedure call only the Outlook Mail or the protocol there is on a Pc .
If there is not any protocol or Email application installed it cannot send any mail .

For this questio I thinked to create a function where the final user can insert some data ( username , mailuser, smtp,nport,password) and send the report with cdo on Internet

before the final user can select with a combobox if select the normal protocol ( outlook ecc) or use the server mail smtp



if select the second option the dialog is opened



and the can send a email and the attach simply





I think it can be usefull on Preview report
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: To Antonio : Email feature from Preview
Posted: Tue Jun 02, 2015 05:35 PM

Email options are complicated, so in my application I have several possible ways for it to be configured. The user sets it in one spot and then it is used system wide.

I modified the preview source so when an email is selected, it uses the system settings. Yes, I have to modify any new source code, but changes to preview are not that frequent.

Then you can add your functions quite easily.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit

Continue the discussion