Missing Sent and From when saving a new e-mail message

D

Dennis Jensen

Hi,

I have developed an Office Add-in for Microsoft Outlook 2007. I
intercept the Sent event to bring up a dialog for the user to choose a
location in our document management system and then use the built in
SaveAs(...) method to store the e-mail.

This works fine, except for the fact that the e-mail has not yet been
sent at this stage, so the saved file does not include any information
of "Sent" or "From" as it normally would.

What would be the best way to overcome this issue? I have tried
storing the EntryID of the mailitem and then retreiving the item later
to do the SaveAs(...), but Outlook tells me there is no such item with
that EntryID.

Any kind of help is much appreciated,
Dennis
 
R

Roady [MVP]

You might want to check with the developers down the hall instead;
outlook.program_vba
outlook.program_addins
 
S

Sue Mosher [MVP]

You should use the Items.ItemAdd event for the Sent Items folder to save the
item. You can still use Application.ItemSend to prompt the user and then mark
the user's choice in the standard BillingInformation or Mileage property or
with a hidden property created with PropertyAccessor (do not use
UserProperties for this).

I've crossposted to the correct forum and will look for your reply there if
you have any questions about this approach.
 

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