- Kari Paukku
- PowerBuilder
- Saturday, 18 February 2023 11:02 AM UTC
Hi,
I'm trying to add CC address to an email I send from PB.
Settting the subject, To (single receiver) work fine, but trying to add the CC gives error "incorrect number of parameters".
here is an extract of the code
// This part works fine
lole_Message = ole_outlook.CreateItem(0)
lole_Message.To = emailAddress
lole_Message.Subject = MailSubject
// And this fails on the add command
lole_recipient = lole_Message.Recipients.Add( "anybody@help.com" )
lole_recipient.Type = 2
lole_recipient.Resolve
What part am I missing?
Thanks,
Kari
ps. The code can use the users local Outlook
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.