Delivery Options

P

Paul Smith

I would like to create a macro which when invoked has the effect of
adding a Email address to the deleivery options of the Email being
written. [The same as View|Options|Delivery options|Have replies sent
to:] I will not require the address to vary to new reply to address can
be hard coded.

Can someone knowledgable please gives me some clues as to the Outlook
objects I need to research to achieve this. Better would eb some code
sample but that would make me lazy [smile]

Paul Smith
 
K

Ken Slovak - [MVP - Outlook]

The ReplyRecipients collection is what you need to work with. Adding a new
Recipient to that collection will have the effect you want. However, access
to any Recipients collection in code like that may be restricted for
security purposes in various versions of Outlook and depending on whether
you are running the code from the Outlook VBA module or a COM addin or from
code running outside of Outlook.

See http://www.outlookcode.com/d/code/autobcc.htm for information on adding
recipients and the possible security problems and workarounds for the
security problems.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top