Hi All,
I want to save an email in .eml format from lotus notes. But for some mails, email body comes in encrypted format, when i try saving email using “Save Mail Message” activity.
Our current implementation is saving email as .eml file and converting .eml file into pdf
I have checked the encryption type for those emails and its ASCII encoding. This issue is not happening for emails having UTF-8 encoding.
Our target is to save the HCL lotus notes email into pdf files. Can anyone suggest a better solution for this
Hello @nithyamurugesan.ece, try something along these lines:
- Decrypt Email Content: If the email content is encrypted, you will need to decrypt it before saving it as an .eml file. The exact method to decrypt the content might depend on the encryption algorithm used. You might need to work with your Lotus Notes API or a third-party decryption library to achieve this.
- Save as .eml: Once the email content is decrypted, you can save it as an .eml file using the “Save Mail Message” activity. This will preserve the decrypted content.
- Convert to PDF: After saving the .eml file, you can use a third-party library or tool to convert it to PDF. There are various libraries available for converting email formats to PDF programmatically. One popular option is the
GemBox.Email
library, which supports email conversion to various formats, including PDF. - Handle Different Encodings: Ensure that you handle different encodings correctly. If you are dealing with ASCII-encoded content, make sure to decode it properly before saving or converting it. If the email body is in HTML format, you might need to handle HTML decoding as well.
- Check Email Conversion Tools: Some third-party tools specialize in converting emails to various formats, including PDF. These tools might offer better handling of encryption and encoding issues. Research and evaluate such tools to see if they can fulfill your requirements.
- Custom Implementation: If your requirements are complex and the existing activities don’t meet your needs, you might consider building a custom solution. This could involve using Lotus Notes APIs, third-party libraries, and custom coding to handle encryption, content decoding, saving, and conversion to PDF.
Hope it helps,
Cheers!
Thanks @rodrigo.simao
When i manually save the email in .eml from lotus notes, I am not facing the encoding issues. It works perfectly when we do manually.
But when i save through “save mail message”, the email body looks encrypted in the .eml file
Can you please elaborate the first point,
1.Decrypt Email Content