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.
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.