Click here to Skip to main content
15,884,473 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

My client requirement is sending an encrypted email. I followed the below link to send encrypted mail :

[^]

I able to send email with subject but body and attachments not able to see. It is sending mail with attachment of .p7m extension.How to open that file also i don't know.

I added trusted certificate also but I'm not able to see the body properly.

Can you please help on this with your suggestion or reference links

What I have tried:

what i tried means first I import certificate to mmc with friendly name. Then copy and past code from below link:
https://blogs.msdn.microsoft.com/jasonn/2008/08/18/sending-encrypted-e-mails-in-c/

Now i'm able to send mail with subject and attachment of .p7m file. I'm unable to see the body part. How to see the body and attachments if any.
Posted
Comments
Sergey Alexandrovich Kryukov 29-Jun-16 2:57am    
I would not be a problem if you explained the scenario. You send encrypted data, but how the addressee can read it? Where the keys come from? It has nothing to do with certificate or anything like that, this is pure logic. With public-key encryption, the communication in one way can be done with two messages, but then no one who spy on all the communications cannot read the message. With symmetric, the problem would be the key distribution. Perhaps you have to learn cryptography in general, just the main ideas.
—SA
Member 11570261 29-Jun-16 5:45am    
I don't know anything about email encryption. Can please share code or reference link for how to send an encrypted email to client using C# console application
Sergey Alexandrovich Kryukov 29-Jun-16 9:02am    
Sorry, no, it's not about code. You need to understand what exactly you need to achieve, at least for yourself.
—SA
[no name] 29-Jun-16 4:13am    
How about little bit googling : http://stackoverflow.com/questions/24137915/read-p7m-file-using-c-sharp

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900