Hi Team,
I am using version of Aspose 22.12. I am facing the following problem with SMIME signature:
- Signature works fine, if I create a MailMessage object in memory and then use MailMessage’s method attachSignature to sign it. If that message is sent, mail clients will report a correctly signed mail
- Signature does not work, if I create a MailMessage object in memory, save it, load it again and then sign it using attachSignature. Mail clients will then report that the signature is invalid because the mail has been changed after signing (which is not the case)
I believe the problem is that there are additional headers in a part of the mail, that should not be present (they are not present in the correct mail). Those headers are probably not included in the signature.
Please find attached the test case, correctly signed email, the wrong one sent by Aspose and a description of the issue: SmimeEmail-2023.zip (1006.2 KB)
Could you please look into the issue?
Thanks and Regards,
Arne