المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : C#, Outlook 2010, and Attaching Signatures



C# Programming
06-06-2012, 12:31 AM
I am using a WinForm for filling out templates, in which the user can Click Send to open a New Message in Outlook (it uses the default account) and places the template in as HTMLBody.

I have seen all the different ways to read the files manually to insert signatures, but that doesn't fit my situation. My users will have multiple Outlook Exchange accounts configured, but only 1 will be used with the templates. The question is, how can I read the account type I want (if anything, based on name or server address) in order to get the signature set up for it?

I guess worse case scenario I could make everyone use the same name for the Signature which would make reading it in manually easier. However, there should be a way to read the account and needed signature for the specific account via VSTO or Interop without scanning files in a directory and play hit or miss.