In my c#.net solution(SharePoint webpart) i have to send Encrypted mails with attachment.I want to use MIMEBlackbox and need technical advice how to use this to send encrypted emails with attachment by using SharePoint SPUtility.SendEmail() method.

Appreciate if you could give me some steps so that i can follow the same.Also what needs to be done from receiver side to decrypt and read the mail.

As far as I can see, there is an ability to call this method with prepared message header and message body provided. So, there should be no problem to store your message to a temporary stream with TElSimpleSMIMEMessage class and then call SendMail method and pass the header and the body read from the stream separately.

Quote

Ravikant Sharma wrote:
Also what needs to be done from receiver side to decrypt and read the mail.

Generally, this task is much more complex than generating messages. But if you need to read only messages generated by your code (with known parts structure), this simplifies the task.

Could you please provide more details on TElSimpleSMIMEMessage.EncryptCertStorage class:

Below is the details which i need clarification:

1) How i can get this certificate to encrypt,is it public key certificate of receiver ?
2) How i can load this certificate from file location
3) How receiver will decrypt the email , by which certificate,how i can get this certificate to share with receiver .

Ravikant Sharma wrote:
1) How i can get this certificate to encrypt,is it public key certificate of receiver ?

Yes, this is the certificate of the receiver. It's up to you how you obtain this certificate - as an option, the receiver can send you the email signed with this certificate, or just send you the certificate in an attachment.

Quote

Ravikant Sharma wrote:
How i can load this certificate from file location

Use one of TElX509Certificate.LoadFrom*() methods. Please refer to the samples (we have plenty of them) in SecureBlackbox\Samples directory.

Quote

Ravikant Sharma wrote:
3) How receiver will decrypt the email , by which certificate,how i can get this certificate to share with receiver .

We use cookies to help provide you with the best possible online experience. By using this site, you agree that we may store and access cookies on your device. You can find out more about and set your own preferences here.