To find an old email attachment in Gmail, search with has:attachment plus whatever you remember, such as from:dana filename:pdf before:2026/06/01, and add in:anywhere to include Spam and Trash. In Outlook, type a keyword in the search box and choose the Files filter, or use Advanced Search and check Attachments; in classic Outlook, type hasattachments:yes. If the file still doesn't appear, it may have been sent as a Google Drive or OneDrive link instead of an attachment.
Start with what you remember
Attachment searches work best when you combine a few facts rather than guessing the exact filename. Before typing anything, jot down whatever you know: who sent it, roughly when, what kind of file, and any word likely to be in the subject or filename.
| You remember | Gmail operator | Outlook |
|---|---|---|
| Who sent it | from:dana@example.com or from:dana | Type the name in search, or use From in Advanced Search |
| It was a file | has:attachment | Files filter (new Outlook, web) or hasattachments:yes (classic) |
| The file type | filename:pdf, filename:xlsx | Add the extension as a search word |
| Part of the filename | filename:lease | Search the word, then filter to Files |
| Roughly when | after:2026/03/01 before:2026/06/01 or older_than:6m | Date range in Advanced Search |
| It was big | larger:5M | Sort a folder by size, where your version offers it |
| A Google Doc, Sheet, or Slides link | has:document, has:spreadsheet, has:presentation, or has:drive | Search the file name or the word "shared" |
How to find an attachment in Gmail
- 1Search with two or three operators
In the search box, combine operators with spaces:
from:dana has:attachment filename:pdf. Each one narrows the results. - 2Add a date range if the list is long
after:andbefore:take dates in YYYY/MM/DD format.older_than:andnewer_than:take d, m, or y, likeolder_than:1y. - 3Use alternatives when you're unsure
filename:{pdf docx}matches either type.from:{dana priya}matches either sender. - 4Widen to Spam and Trash
Add
in:anywhereto include Spam and Trash. Deleted messages stay in Trash for 30 days before Gmail removes them permanently. - 5Use the search options panel if you'd rather not type operators
Click Show search options in the search box and fill in fields like From and Subject instead. The same panel is where filters start.
One Gmail detail catches people out: files over the 25 MB attachment limit on personal accounts are automatically replaced with a Google Drive link. Those emails may not match has:attachment. Try has:drive instead, or search Google Drive directly under Shared with me.
How to find an attachment in Outlook
New Outlook for Windows and Outlook on the web
- 1Search a keyword
Click the search box and type the sender, a subject word, or part of the filename.
- 2Filter to files
Select Files in the search results to show only messages with attachments.
- 3Or use Advanced Search
Open the search filters and check Attachments, then add From, date range, or keywords. Outlook on the web also accepts
HasAttachment:yestyped into the search box. - 4Browse all messages with files
Without searching, use Sort, then Has files, to group messages that carry attachments.
Classic Outlook for Windows
- 1Type the search keyword
In the search box above the message list, type
hasattachments:yesand press Enter. Add other words, likelease hasattachments:yes, to narrow it. - 2Or use the ribbon
Click in the search box to open the Search tab, then select Has Attachments in the Refine group.
- 3Widen the scope
Search looks in the current folder or mailbox by default. If nothing turns up, widen the scope in the Search tab to all mailboxes or all Outlook items.
Outlook on the web shows only the first 1,000 search results, so on a busy mailbox, add a sender or date before scrolling.
When the attachment still won't show up
- It was a link, not a file. Search your cloud storage (Google Drive, OneDrive, Dropbox) for the name, or search email for the word "shared".
- It came through a different channel. Check Slack, Teams, or WhatsApp if the sender uses them. People often say "I emailed it" about something they sent in chat.
- It was sent to a different address. Check your other accounts, or a shared inbox you're on.
- The mail was deleted more than 30 days ago in Gmail, or purged by a retention policy at work. Ask the sender to resend, or ask your admin whether it can be recovered.
Save the next one where you'll find it
When you find an important file, save it to a folder in Drive or OneDrive with a filename you'd search for: 2026-04 Lease signed - 12 Elm St.pdf beats scan0042.pdf. For recurring senders, a filter or rule that labels mail with attachments saves the hunt next time; see how to organize Gmail with labels and filters.
How Synced finds files for replies
Most attachment hunts start because someone asked for the file again. Synced handles that case: when a message in a connected Inbox asks for a document, it searches your connected Google Drive or OneDrive, using past emails for context, finds the file, and drafts the reply with it attached. The draft waits in Decide until you approve it. For search across mail and files in general, see Search.
- Search operators you can use with Gmail (Gmail Help) (checked 2026-09-13)
- Gmail attachment size limits (Gmail Help) (checked 2026-09-13)
- Delete or recover Gmail messages (Gmail Help) (checked 2026-09-13)
- Find all messages with attachments in Outlook (Microsoft Support) (checked 2026-09-13)
- Use Outlook's built-in search filters (Microsoft Support) (checked 2026-09-13)
- Search Mail and People in Outlook on the web (Microsoft Support) (checked 2026-09-13)