Quantcast
Channel: Outlook IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 33562

Save on Send

$
0
0

Hiya,

I have some code which saves every email to a .msg file on a network share when the user presses the Send button. However it's saving it in the 'drafted' state so if someone opens up the .msg file it can be modified.

If I manually save a sent item it's not editable - how do I achieve this effect in VBA?

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
                ...code...
                Item.SaveAs strFileName, olMSG
                ...code...
End Sub

Thanks


Viewing all articles
Browse latest Browse all 33562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>