Send an email using ccn

Send an email using ccn

Postby Marco Turco » Mon Oct 05, 2009 8: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
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London

Re: Send an email using ccn

Postby driessen » Mon Oct 05, 2009 3:34 pm

Marco,

You can use this code to send e-mails in CC and BCC :
Code: Select all  Expand view
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. 24.07 - Harbour 3.2.0 (February 2024) - xHarbour Builder (January 2020) - Bcc773
User avatar
driessen
 
Posts: 1422
Joined: Mon Oct 10, 2005 11:26 am
Location: Genk, Belgium

Re: Send an email using ccn

Postby Marco Turco » Mon Oct 05, 2009 4:11 pm

It runs fine. Thank you Driessen.
Best Regards,

Marco Turco
SOFTWARE XP LLP
User avatar
Marco Turco
 
Posts: 858
Joined: Fri Oct 07, 2005 12:00 pm
Location: London


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 37 guests