How to Fix PDF Attachment Opens and Closes Then Starts Email Draft
Question details
The user is experiencing an issue where a PDF attachment opens briefly, immediately closes, and then unexpectedly launches a new email composition window.

- Product
- Device & OS
- not provided
- Scenario
- Opening a recurring monthly PDF attachment directly from an email client.
- Observed behavior
- The PDF window fails to stay open and forcefully triggers the default email application to start drafting a new message.
Verify that your antivirus software is currently active and scan the email attachment, as unexpected automated actions can sometimes be triggered by malicious embedded scripts.
Save the PDF Locally Before Opening
Bypass email client viewing restrictions and integration conflicts by saving the file directly to your local storage first.
Opening attachments directly within an email application can sometimes trigger conflicting preview handler behaviors, especially if the file contains specific macros or export metadata from Excel. Saving it locally isolates the file from the email client.
Right-click the problematic PDF attachment in your email application and select 'Save As' or 'Download'.
Navigate to a secure folder on your computer, such as your Desktop or Documents folder, and click 'Save'.
Go to the saved folder, right-click the downloaded PDF file, hover over 'Open with', and select a standalone PDF reader program.

Disable Document-Level JavaScript in Your PDF Reader
Prevent embedded scripts within the PDF document from executing unauthorized background commands.
Safely Open and Manage PDF Attachments with WPS Office
WPS Office provides a secure and robust PDF reading environment that helps prevent unwanted automated scripts from disrupting your workflow. Easily view, edit, and annotate PDFs securely without unexpected application launches.
- 1. Download the software: Download and install WPS Office for free from the official WPS website.
- 2. Save your attachment: Save the problematic PDF attachment from your email client to your computer's local drive.
- 3. Launch WPS Office: Open the WPS Office application and click on the 'Open' button located on the home dashboard.
- 4. View securely: Locate your saved PDF and select it to open safely within the dedicated WPS PDF workspace.

Frequently Asked Questions
Why does a PDF automatically open an email draft?
This usually happens when the PDF contains embedded document-level JavaScript or a 'mailto:' action. These elements are designed to trigger the default email application to launch a new composition window as soon as the file is rendered.
Is it safe to open a PDF that exhibits this behavior?
It can be a security risk. While it might be a poorly formatted script from a trusted colleague, unexpected automated actions in PDFs can sometimes be associated with malicious intent. You should avoid interacting with the newly opened email draft and scan the PDF with your antivirus software.
How do I stop PDFs from opening in my email client by default?
You can change your default application settings in your operating system. Right-click any PDF file on your computer, select 'Open with', click 'Choose another app', select your preferred PDF reader, and check the box that says 'Always use this app to open .pdf files'.




