We need an example, written in C#, preferred VS2005, but also 2008/2010 is ok.
an eMail should be send by smtp. Before sending the email included attachements (!!) should be encrypted by X509 (S/MIME) certificate, stored in the windows certification cache.
Those encrypted eMails must be decrypted by Outlook 2003/2007/2010 automatically with S/MIME (it is integrated in Outlook).
We need just an examplecode, it should be an console appliction. The code must commended and an Dokumenation is needed.