Mail Corrupts a PDF Attachment While Sending
    • 20 Jun 2024
    • 1 Minute to read
    • Contributors
    • PDF

    Mail Corrupts a PDF Attachment While Sending

    • PDF

    Article summary

    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.