J
Jenny Tam
Hello
I've created a COM add-in for Outlook in VC++. One of my goals is to
create a 'Log and Send' button in the Inspector (for new mail only)
such that when the user clicks it, the add-in will send the email on
behalf of the user. At the same time, the add-in will get various
properties of the email and log them to a SQL database.
I have no problem trapping the Application.ItemSend event. In this
event, I can get most properties I want except for the MailItem.SentOn
property. During the ItemSend event, MailItem.Sent is false and
MailItem.SentOn is undefined.
So how exactly can I get the correct MailItem.SentOn property? I
don't think I can rely on monitoring 'Sent Items' because the user
might choose not to save copies of messages in Sent Items folder. So
should I check Outbox? What about offline users?
I also want to know whether I can update the corresponding MailItem in
the Sent Items folder. For example, I'd like to add a UserProperty
'Logged' (olYesNo) to the MailItem. I don't want to add it during the
ItemSend event because I don't want my recipient to see this
UserProperty. Is this even possible?
Any help is appreciated!
Jenny
I've created a COM add-in for Outlook in VC++. One of my goals is to
create a 'Log and Send' button in the Inspector (for new mail only)
such that when the user clicks it, the add-in will send the email on
behalf of the user. At the same time, the add-in will get various
properties of the email and log them to a SQL database.
I have no problem trapping the Application.ItemSend event. In this
event, I can get most properties I want except for the MailItem.SentOn
property. During the ItemSend event, MailItem.Sent is false and
MailItem.SentOn is undefined.
So how exactly can I get the correct MailItem.SentOn property? I
don't think I can rely on monitoring 'Sent Items' because the user
might choose not to save copies of messages in Sent Items folder. So
should I check Outbox? What about offline users?
I also want to know whether I can update the corresponding MailItem in
the Sent Items folder. For example, I'd like to add a UserProperty
'Logged' (olYesNo) to the MailItem. I don't want to add it during the
ItemSend event because I don't want my recipient to see this
UserProperty. Is this even possible?
Any help is appreciated!
Jenny