O
Oliver Giesen
Hi all!
I'm trying to write a addin that automatically sets the ReplyTo
header on unsent outgoing mails depending on context either from within
an appropriate event handler (e.g. NewInspector or another Item's Reply
event). This would actually already work fine by simply adding names to
the mail item's ReplyRecipients collection but that way I get the OL
security warnings...
Now, the obvious solution seems to be to use Redemption and indeed when
doing the same using the corresponding Redemption Objects all appears
to work fine - at first that is. Messages do get sent out with the
correct ReplyTo address set but when I open the Message Options dialog
before sending the message, the "Have replies sent to" option is
unchecked and when I close the dialog again, no ReplyTo will be set.
Likewise, peeking at the message object with OutlookSpy reveals an
empty ReplyRecipients collection.
I guess this is because the mail item that the inspector edits is more
or less detached from the one that is accessed via the Redemption
wrappers... but how to overcome this?
I know of several addins that do manage to set the ReplyTo without
these problems so I know it must be possible but currently I don't know
what else to try... I'd rather like to avoid messing around with
sending window messages to the Message Options dialog...
Any ideas?
Cheers,
I'm trying to write a addin that automatically sets the ReplyTo
header on unsent outgoing mails depending on context either from within
an appropriate event handler (e.g. NewInspector or another Item's Reply
event). This would actually already work fine by simply adding names to
the mail item's ReplyRecipients collection but that way I get the OL
security warnings...
Now, the obvious solution seems to be to use Redemption and indeed when
doing the same using the corresponding Redemption Objects all appears
to work fine - at first that is. Messages do get sent out with the
correct ReplyTo address set but when I open the Message Options dialog
before sending the message, the "Have replies sent to" option is
unchecked and when I close the dialog again, no ReplyTo will be set.
Likewise, peeking at the message object with OutlookSpy reveals an
empty ReplyRecipients collection.
I guess this is because the mail item that the inspector edits is more
or less detached from the one that is accessed via the Redemption
wrappers... but how to overcome this?
I know of several addins that do manage to set the ReplyTo without
these problems so I know it must be possible but currently I don't know
what else to try... I'd rather like to avoid messing around with
sending window messages to the Message Options dialog...
Any ideas?
Cheers,