WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: wilywombat on July 13, 2013, 01:39:29 AM

Title: Outlook question
Post by: wilywombat on July 13, 2013, 01:39:29 AM
I'm writing a script that responds to a button press that was created using the WIL Dialog editor.  When selected the button starts an Outlook windows to send an email "To" a recipient list.  The question is, whilst I can send "To", how do I "Cc or "Bcc" the email?
Thanks for any help!
Title: Re: Outlook question
Post by: Deana on July 15, 2013, 08:15:18 AM
The answer will depend on how you are currently launching Outlook to send the email. Are you using COM automation, if so I believe the MailItem object has a CC and BCC property that can be defined. http://msdn.microsoft.com/en-us/library/office/aa210946(v=office.11).aspx

Alternatively you might consider using the Postie Extender to send your email. http://techsupt.winbatch.com/webcgi/webbatch.exe?techsupt/tsleft.web+WIL~Extenders/Postie+Send~Email~with~dialog.txt