- Print
- PDF
Mail Corrupts a PDF Attachment While Sending
Sometimes, when sending emails through a mail gateway, a PDF attachment can get corrupted.
To resolve this issue, follow these steps:
Set the attachment type to application/pdf instead of text/plain, which is the default.
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.