Help on getting the MSG file to say it has been sent

P

PromisedOyster

We have an application that automatically sends and saves Outlook
messages. However, what I want to do is somehow get the MSG file to be
marked as 'sent' rather than 'unsent'.

For example:

mailItem.SaveAs(fileName, Outlook.OlSaveAsType.olMSG);
mailItem.Send();

This works, but the problem is that the saved file is marked as
'unsent'


If I change the code as follows (ie swap the order), then I get a
message saying the item has been deleted when I call the SaveAs:

mailItem.Send();
mailItem.SaveAs(fileName, Outlook.OlSaveAsType.olMSG);


What is the simplest way of getting the sent MSG (to save) so it is
clear that the MSG has actually been sent?

Your assistance would be greatly appreciated.
 

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