Hello,
we are evaluating your component and have actually the following problem.
After a Decrypt() call I still have no access to Body, Attachments etc.
If I load the certificate manually before all works fine.
MailMessage m = new MailMessage();
m.Load(filestream);
/*
Certificate certificate = Certificate.LoadPfx(@"xyz.pfx", "pwd");
var ch = new CertificateChain();
ch.Add(certificate);
m.CertificateFinder = CertificateFinder.CreateFinder(ch);
*/
if (m.IsEncrypted && m.CanDecrypt)
{
textBox1.Text += "Mail is encrypted and will be decrypted";
textBox1.Text += "\r\n";
m.Decrypt();
}
textBox1.Text += m.BodyText;
Without the remarked code above Im.CanDecrypt is true and I get no bodytext in the textbox. Setting the certificate manually from the file it works fine.
Is there a possibility without needing the certificate file ?
Thanks in advance
Norbert Kessler