Save WordPress email attachments

How to Save WordPress Email Attachments [The EASY Way]

Editorial Note: We may earn a commission when you visit links on our website.

Are you looking for an easy way to save email attachments in WordPress?

Keeping a copy of every file attachment makes it easy to archive or check the files your site’s sending out.

In this article, we’ll show you how to save WordPress email attachments easily.

Save Your WordPress Email Attachments Now

How Do I Send an Attachment in WordPress?

You can send an attachment in WordPress with many different plugins. For example:

  • If you want to get contact form messages with attachments, you can use Formidable Forms to do this. This will allow customers to upload a file through a form that you’ll receive via email.
  • Some WooCommerce plugins let you attach invoices to your order emails. It’s smart to save a copy of these so you can refer back to them in case of any questions.
  • You can send WordPress backups as email attachments too, but keep in mind that sending large attachments can sometimes cause problems with email deliverability.

For more information, check out our dedicated post: How To Send An Email With Attachments in WordPress.

No matter how you send attachments, storing a copy automatically makes sense. Attachments can cause email deliverability problems, so it’s helpful to keep a copy of each attachment just in case.

How to Save WordPress Email Attachments

1. Install the WP Mail SMTP Plugin

WP Mail SMTP is the best email plugin for WordPress. It lets you send emails through an external email service to make sure they don’t get filed as spam.

WP Mail SMTP also has a super powerful email log. We’re going to show you how to use that to save email attachments.

To download the plugin, head over to your WP Mail SMTP account and switch to the Downloads tab to grab the latest version of the plugin file.

Download the WP Mail SMTP plugin

Switch back to your WordPress dashboard and upload the zip file to the plugins page.

Need a hand? Check out how to install a WordPress plugin.

Install WP Mail SMTP

Once the plugin is installed, be sure to Activate it. This will start the Setup Wizard.

2. Connect to a Mailer Service

In the first step of the Wizard, we’ll connect your website to a 3rd party email service provider.

Click the Let’s Get Started button to begin the process.

click the Let's Get Started button

Now, you’ll see a list of all the mailer options supported by WP Mail SMTP.

Before choosing a mailer, it’s a good idea to consider:

  • The type of emails you send: WooCommerce order emails need to be delivered much more quickly than emails from hobby sites, so we recommend a transactional email provider for that purpose.
  • The size of the attachments: Amazon SES charges extra for attachments, while some other providers have attachment size limits as low as 4MB:
Provider Attachment size limit Fee for attachments
Brevo (formerly Sendinblue) 4 MB
SMTP.com 15 MB
Amazon SES 40 MB $0.12 per GB
Sendgrid 10 GB
Gmail 25 GB
Google Workspace 25 GB
Outlook/ Microsoft 365 4 MB
Zoho Mail 20 MB
Other SMTP Varies

When choosing a mailer, keep in mind that a high size limit doesn’t necessarily mean all of your attachments will be delivered.

Most email providers will block very large attachments. In some cases, the recipient may not have enough mailbox space to receive the message. These are both good reasons to save email attachments in WordPress.

When you’ve decided on a provider, select it from the list in the Setup Wizard and continue.

Select your SMTP mailer

Next, click the link below to open the documentation for your mailer service.

Mailers available in all versions Mailers in WP Mail SMTP Pro
SendLayer Amazon SES
SMTP.com Microsoft 365 / Outlook.com
Brevo Zoho Mail
Google Workspace / Gmail
Mailgun
Postmark
SendGrid
SparkPost
Other SMTP

When you’ve set up a connection, switch back to this guide to follow the next steps in the wizard.

3. Enable Email Logging

After you connect your mailer, you’ll have the option to turn on additional WP Mail SMTP features. Be sure to turn on the Detailed Email Logs. This feature will track the headers, subject, and recipient.

When Detailed Email Logs are enabled, the Complete Email Report will be turned on automatically. We also recommend that you turn on the Weekly Email Summary so you can keep track of your emails without logging in to WordPress.

Enabling email logs and email alerts in the WP Mail SMTP Setup Wizard

Go ahead and move to the next step of the Setup Wizard to turn on attachment logging.

4. Save Email Attachments in WordPress

The Setup Wizard will now let you configure additional settings for your email logs. These include:

  • Store the content for all sent emails. This feature saves the content of your WordPress emails in your site’s database. It must be turned on if you want to resend emails.
  • Save file attachments sent from WordPress. This is the option you need to enable to save WordPress file attachments. They’ll be stored in your site’s Uploads folder.
  • Track when an email is opened. If you want to track user engagement, you can turn on this option to see when recipients open your emails.
  • Track when a link in an email is clicked. This feature also helps with user tracking and enables you to see when recipients click the links in your emails.

Configuring email log settings in the WP Mail SMTP Setup Wizard

If you ever need to edit any of these settings, just go to WP Mail SMTP » Settings » Email Log.

Let’s view an email attachment in WordPress next.

5. View Attachments in WordPress

Once you’ve sent out an email with attachments in WordPress, you can download email attachments easily from the log.

To try it out, go to WP Mail SMTP » Email Log.

Open the email log in WP Mail SMTP

Then click on the subject line of any email to open the email log.

Email log filtered by date in WordPress

You’ll see the original file attachments listed in the Attachments section. Click on the link to view or download the attachment.

Although you can see the original file name here, it’ll be saved with a random file name behind the scenes. That helps to keep your files secure.

File attachment in WordPress email log

Keep in mind that the attachment files are associated with the email log. So if you delete the email log, the corresponding attachments will also be deleted from your web hosting account.

What if you want to download all attachments at once?

Let’s see how we can export attachments easily using WP Mail SMTP.

6. Export Attachments From the Email Log

WP Mail SMTP lets you export the email log and attachments in CSV, XLSX, and EML format. The process is slightly different for EML, so we’ll show you how to do it both ways.

To create your export file, head over to WP Mail SMTP » Tools.

WP Mail SMTP Tools menu

Now, click on the Export tab at the top.

Export tab in WP mail SMTP

First, let’s look at exporting email logs and attachment details in a CSV or spreadsheet.

Exporting Email Attachments in CSV or XLSX Format

CSV and XLSX exports include a link to each attachment file, rather than including the files themselves. This helps to keep the file size small.

First, select either CSV or Microsoft Excel under Export Type.

Export email log as CSV

Under Common Information, make sure the Attachments checkbox is selected.

Export WordPress email attachments

If you want, you can include more information and filter the export.

WP Mail SMTP export information - additional filters

Click on the Download Export File and a file will be downloaded in the format you selected in export type.

When you open it up, the attachments are listed in the Attachments column.

Email attachment xlsx

As we mentioned above, the file name has been replaced with a random name for security.

Exporting Email Attachments in EML Format

If you want to export the attachments themselves, it’s better to use EML format. That way, you’ll get a zip file of each email including the original attachments.

To export emails with their attachments, click EML in the Export Type section. EML files contain all the detail from the log, including the email content if you chose to save that. That’s why there are fewer options here compared to the CSV and XLSX export.

Export EML WordPress emails and attachments

Now click Download Export File to download all the emails in EML format.

Inside the zip file, you’ll see each individual email.

WordPress EML export

Click on any email to view the log and its attachments.

This is an awesome way to preview custom email templates. For example, if you’re using a WooCommerce email customizer plugin, you can export your templates in EML format and try opening them in different email clients.

That’s it! Now you know how to save email attachments in WordPress using the WP Mail SMTP plugin.

Save Your WordPress Email Attachments Now

Next, Enable Open and Click Tracking

Now you’re tracking attachments in WordPress, you can turn on open and click tracking too.

BuddyPress click and open tracking on activation email

Open and click tracking lets you see when your emails are being read. To see how it works, check out our article on how to enable open and click tracking for WordPress emails.

Ready to log your emails?

Ready to fix your emails? Get started today with the best WordPress SMTP plugin. WP Mail SMTP Elite includes full White Glove Setup and offers a 14-day money-back guarantee.

If this article helped you out, please follow us on Facebook and Twitter for more WordPress tips and tutorials.

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

This form is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.