I am trying to develop an add-in add-in in VS 2010. The goal is to check the email content and attachment content for some keywords, and if such words are found, sending email should be blocked. I can read the body and subject of the email and check, but I do not understand how to read the contents of the attachment (txt file) when composing mail.
attachment.GetTemporaryPath () does not indicate an attachment path. I think this only works for emails in the inbox. One of the ways I found is to save the attachment to a temporary folder and read it (attachment.saveAs ()). Is this the only way to read the contents of attachments when composing mail?
Possible duplicate: C # Outlook 2007 - How to access the contents of attachments directly from my upload?
But, as suggested there, I cannot use the Atonement. Is there another way?
source
share