Email Logs is one of the core features of Mailtrap Email Sending. It’s a place to go to view all the emails sent from your account, along with a number of corresponding details. These include the status of each message, its preview, events history, HTML source, and statistics.
You’ll find Email Logs in the menu to the left. Searching through Email Logs is the best way to debug email deliverability issues or check how a certain email performed - if it was opened or if a link was clicked.
How to use filters in Email Logs
To make it easier to find the emails you need, we implemented various filtering criteria. You can create your own criteria or use either of the preset filters above.
These filters are a quick way to find:
- Bounces - all emails that were not accepted by the recipient’s mailbox provider (for any reason).
- Spam - all emails that were reported as spam by the recipients (note: this does not include emails that landed in the recipients’ spam folders).
- Google - all emails that were sent to free Gmail accounts.
- Google Workspace - all emails that were sent to mailboxes using Google Workspace - the paid version of Gmail used by businesses and organizations.
- Outlook - all emails that were sent to Outlook.com mailboxes.
- Office 365 - all emails that were sent to Office 365 mailboxes.
- Yahoo - all emails that were sent to Yahoo mailboxes.
Note: When an email is sent, Mailtrap doesn’t yet know which Mailbox Provider (e.g., Google, Outlook, Hotmail, etc.) it sent a message to. It’s only able to determine this when it receives a response from the recipient’s Mailbox Provider, which may sometimes take a few minutes.
By default, Mailtrap shows Email Logs for the last seven days. You can change the range by clicking on the current range in the top-right corner of the page.
During the Beta program, emails are stored in the Email Logs for an unlimited amount of time.
Understanding the filters
If you prefer to set up your filters manually, you have plenty of options at your disposal. Here’s what you can filter by:
|Criteria||What is it?||Example operator and value|
|Email to||Email address of a recipient, the “To:” header of a message.||Is: email@example.com|
|Email from||Email address a message is sent from, the “From:” header of a message. Can be used to find messages sent from a specific domain.||Is: firstname.lastname@example.org|
|Subject||Subject line of a message. The value is not case-sensitive.||Contains: Product Update|
|Status||The current state of an email.||Is: Delivered, Not delivered, Enqueued, Opted Out|
|Events||An action that occurred to an email before, during, or after delivery. An email can have multiple events associated with it.||Include: Sending, Delivery, Open|
|Number of Clicks||The total count of clicks that links in an email received. Click tracking must be enabled for clicks to be counted.||Greater than: 3|
|Number of Opens||The total number of times that an email was opened. Note: some mailbox providers, browsers, or extensions can block tracking, which will affect the results. Open tracking must be enabled for opens to be counted.||Is: 2|
|Client Sending IP||IP of a device (e.g., your computer) that an email was sent from.||Is: 184.108.40.206|
|Mailtrap Sending IP||IP that Mailtrap used to send an email.||Is not: 220.127.116.11|
|Full response from the Mailbox Provider server||The response Mailtrap received when an email failed to be delivered or when a soft bounce was recorded.||Contains: The email account that you tried to reach does not exist.|
|Mailbox provider server type||The name of the recipient’s Mailbox Provider. Available once an email is delivered or a response about a failed delivery is received.||Is: Proton Mail|
|Mailbox provider server raw||The name of the recipient’s Mailbox Provider, as specified in their MX record.||Contains: gmail-smtp-in.l.google.com|
|Categories||The category specified in the “X-MT-Category” header of an email.||Contains: Newsletter|
You can combine different filters by using the Add filters button to the right. In some fields, you may add multiple values to find emails matching either of them.
For example, here we search for emails that were delivered, clicked, and the recipient has either a Google Workspace or Yahoo! mailbox.
Email Logs store emails sent from all your domains. If you wish to filter only for a particular domain or address, use Email from. For example:
Diving deeper into Email Logs
Email Logs provide much more information about each sent message. To access this, click on any of the messages.
The Email info tab provides the basic details of a message, including the timestamps, status, from/to addresses, or the IPs. If you’re confused about any of these terms, check our Sending Glossary.
Event History offers a list of all the events that have happened to this email since it was sent, and until this moment.
HTML Source, Text, Preview, Raw, and Spam Analysis tabs you may know well from the classic Mailtrap testing experience. Here, you can preview how your message looks like on different devices, see its code, or see its spam score.