R
rschisler
I have written a COM Addin for Outlook 2003 which combines text from messages
found in specific public folders into a new message which is placed in the
user's designated folder (typically Drafts). The user is expected to
view/edit the resultant message and then send it. The customer wants the
sender of the message to be the email address of the public folder. I have
tried setting SendOnBehalfOf to that email address. It shows up when the
user edits the message, but when Outlook sends it, it is replaced by the
users name/email address.
I believe this is because once the message has been saved, the MAPI sender
object is locked in, hence it contains the user's email address that ran the
Addin.
My question: Is there some way to save this message with the desired email
name/address so that when it is sent, it arrives looking like it came from
the public folder.
I have even tried having the sender manually change the From line before
sending... it appears to change, but gets replaced once Outlook sends the
message.
Help please!
found in specific public folders into a new message which is placed in the
user's designated folder (typically Drafts). The user is expected to
view/edit the resultant message and then send it. The customer wants the
sender of the message to be the email address of the public folder. I have
tried setting SendOnBehalfOf to that email address. It shows up when the
user edits the message, but when Outlook sends it, it is replaced by the
users name/email address.
I believe this is because once the message has been saved, the MAPI sender
object is locked in, hence it contains the user's email address that ran the
Addin.
My question: Is there some way to save this message with the desired email
name/address so that when it is sent, it arrives looking like it came from
the public folder.
I have even tried having the sender manually change the From line before
sending... it appears to change, but gets replaced once Outlook sends the
message.
Help please!