How to Print Emails Automatically: Rules and Setup
In this article
You can print an email automatically by creating a filter (rule) in Gmail or Outlook that sends matching messages straight to the printer, usually with a small helper script or an add-in. Gmail needs Google Apps Script or a print service; Outlook can do it with a built-in rule plus the "print it" option in some versions.
Time 20 min · Steps 7 · Level Medium
Set Up Auto-Printing in Gmail With a Filter and Script
- Open Gmail settings. Click the gear icon, then "See all settings", and go to the "Filters and Blocked Addresses" tab.
- Create a filter. Click "Create a new filter", type the sender address or subject keyword you want to match, and click "Create filter".
- Apply a label. Tick "Apply the label", choose "New label", name it something like "To-print", and create the filter.
- Open Google Apps Script. Go to script.google.com while signed in to the same account, start a new project, and paste a script that searches for unread messages in the "To-print" label and sends them to your printer or saves them as PDFs.
- Set a trigger. In the script editor, open the clock icon (Triggers), add a trigger for your function, and set it to run every 5 or 10 minutes.
- Authorize the script. Run the function once manually and approve the permission prompt so Google allows it to read your mail.
- Test with a real email. Send yourself a message that matches the filter, wait one trigger cycle, and confirm the printed page appears in the printer tray.
Auto-Print in Outlook With a Rule
Outlook on Windows can print incoming mail with a rule alone, which is why many offices use it for this job. Open File > Manage Rules & Alerts > New Rule, choose "Apply rule on messages I receive", set your condition (for example, from a specific sender), then under actions select "print it" if your version shows it. Labels can differ slightly between versions. If the "print it" action is missing, the workaround is to have the rule move matching mail to a folder and run a small script or add-in that prints everything in that folder.
Outlook on the web and Outlook for Mac do not offer a print action in rules, so on those you route the mail to a folder and handle printing from the desktop version or a helper tool.
Before You Start: Printer and Account Checklist
- The printer is on, loaded with paper, and set as the default printer on the computer that will do the printing.
- The computer stays awake: check power settings so it does not sleep between trigger runs.
- The account you filter is the account you actually receive the mail in - filters only act on mail that arrives after the filter is created.
- You know roughly how many messages per day will match, so one sheet per email does not empty a paper tray overnight.
When Auto-Printing Misbehaves: Symptoms and Fixes
| Symptom | Likely cause | Fix |
|---|---|---|
| Nothing prints | Script trigger not saved or not authorized | Re-run the function manually and re-check the trigger time interval |
| Prints once, then stops | Computer went to sleep or printer went offline | Adjust power settings; set the printer as default again |
| Same email prints twice | Script does not mark messages as read or processed | Add a step that marks each printed message as read |
| Filter matches too much | Condition too broad (whole domain or common word) | Narrow the filter to one sender or a unique subject phrase |
| Outlook rule ignores new mail | Rule set to run only on messages already received | Recreate the rule and leave "run on messages I receive" selected |
How to Tell It Worked, and Safer Settings
A working setup prints each matching email once, within one trigger cycle of its arrival, and marks it processed so it never prints again. Send two test emails a few minutes apart and check both appear once each in the tray.
Two habits keep this safe. First, keep the filter narrow: auto-printing a broad match can dump dozens of pages, including mail with personal or account details, onto a shared printer where anyone can read them. Second, if the printer is in a shared space, consider printing only a notification or saving to PDF instead of the full message body.
For attachments, decide whether you need them: most simple scripts print the message text only, and printing attachments requires an extra step that opens each file with its own app - worth adding only if you truly need the attachment on paper.
Official source: Google Workspace Admin Help