FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Send an email using ccn
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Send an email using ccn
Posted: Mon Oct 05, 2009 08:27 AM

Hi all,
I need to send an email using the Outlook OLE connector.
It runs well but I would like use the ccn in order that the user that will receive the email can't see any other email when I send to multiple recipients.

Is there a way to do this ?

This is my current code:

    oOutLook := CreateObject( "Outlook.Application" )
    oMailItem := oOutLook:CreateItem( 0 )
    oRecip := oMailItem:Recipients

    oRecip:Add( "test@softwarexp.co.uk" )
    oMailItem:Subject := "Subject"
    oMailItem:Body := "Mail test"

    oMailItem:Send()

Other question:
as I know it isn't possibile to use the ccn using MAPI (Fivewin tMail class). Isn't it ?

Thanks in advance.

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Send an email using ccn
Posted: Mon Oct 05, 2009 03:34 PM
Marco,

You can use this code to send e-mails in CC and BCC :
Code (fw): Select all Collapse
oMailItem:CC := TabCC
oMailItem:BCC := TabBCC

Where TabCC and TabBCC are the variables cotaining the e-mail addresses (seperated by a semi-colon ";") to which you want to send your e-mail to in CC or in BCC.

Works very good here.

Good luck.

Regards,

Michel
Genk( Belgium)

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
Re: Send an email using ccn
Posted: Mon Oct 05, 2009 04:11 PM

It runs fine. Thank you Driessen.

Best Regards,



Marco Turco

SOFTWARE XP LLP

Continue the discussion