--- title: "Mail Corrupts a PDF Attachment While Sending - Lasernet Developer " slug: "mail-corrupts-a-pdf-attachment-while-sending" description: "Sometimes, when sending emails through a mail gateway, a PDF attachment can get corrupted. The article explains how to solve this issue." tags: ["Lasernet Developer", "PDF", "Emails"] updated: 2024-06-20T08:25:16Z published: 2024-06-20T08:25:16Z canonical: "kb.lasernetgroup.com/mail-corrupts-a-pdf-attachment-while-sending" --- > ## 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 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**.