Documentation Index

Fetch the complete documentation index at: https://kb.lasernetgroup.com/llms.txt

Use this file to discover all available pages before exploring further.

Mail Corrupts a PDF Attachment While Sending

Prev Next

Sometimes, when sending emails through a mail gateway, a PDF attachment can get corrupted.

To resolve this issue, follow these steps:

  1. Set the attachment type to application/pdf instead of text/plain, which is the default.

  2. Set the JobInfo mimetype to application/pdf.

MimeType

This is used to set the mimetype of an optional attachment in an e-mail. It is required if the mail reader cannot associate the attached file with an application for reading it.

See JobInfos for PrintMimeType, PrintAttachmentMimeType and MailAttachmentMimeType for additional features.

Examples of mime types are application/pdf, application/msword.

Additional Information

It is always recommended to set the content type for jobs before sending them to modules such as Azure Service Bus Input, Azure Service Bus Output, Exchange Output, Mail Output.

Was this page helpful? Let us know at knowledgebase.feedback@lasernetgroup.com