Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automation using groupwise
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Automation using groupwise
Miscellaneous
Thread ID:
00941131
Message ID:
00941131
Views:
62
Hi all,

I am having some problem with the following code. If someone see what I am doing wrong please advise. What I am trying to do here is to send a message to two people of one is CC. However both are coming up in To block.

goGroupwise = CREATEOBJECT("NovellGroupwareSession")
goLoginGW = goGroupwise.Login
loMailBody = goLoginGW.MailBox.Messages.Add()
lomailbody.Subject = 'This is the subject ' + TIME()
loMailBody.BodyText = 'Hello world! This is the body'

*--this is appearing in To block as it should be.
loRecipient = m.lomailbody.Recipients.Add('ExternalEAD@yahoo.COM',0)


*--this line should be appearing in CC but isn't
loRecipient = m.lomailbody.Recipients.Add('InternalEAD@ABC.com','NGW',1) &&&CC = 1 BC = 2

lorecipient.Resolve

lomailbody.Send
RELEASE gogroupwise ,gologingw,lomailbody,lorecipient
Next
Reply
Map
View

Click here to load this message in the networking platform