# Email from WordPress

> We send your site's WordPress mail through our own server level mail service, always on, and an SMTP plugin you install takes over the sending for your site.

Source: https://docs.wpwaterfall.com/wordpress-email

Every WP Waterfall site can send the mail WordPress writes: password resets, order emails, and form notices. The mail goes out through WP Waterfall's own mail service, which runs at the server level. You do nothing to set it up, and you can not turn it off.

If you want your site to send mail another way, install an SMTP plugin. WP Waterfall steps aside and the plugin sends your mail. WP Waterfall's own email to you is separate. See [Emails we send](https://docs.wpwaterfall.com/emails-we-send).

## What happens by default?

When WordPress sends a message with `wp_mail`, WP Waterfall takes it and sends it for you. You do not need a plugin, a login, or a port.

- **The sender.** The message comes from your site's name on a WP Waterfall mail address, such as `Acme Shop <site-1a2b3c4d5e6f@mail.wpwaterfall.com>`. If a plugin or a setting gives your site another From name, that name is used. The address always stays on WP Waterfall's mail domain, because only that domain carries the records that make mail trusted.
- **Replies.** The Reply-To is the address your site asked for, such as `orders@yourshop.com` or the Reply-To you set in a form plugin. When a customer presses Reply, the answer goes to you.
- **Speed.** A message usually leaves within a minute. If the mail provider is busy, WP Waterfall keeps the message and tries again for up to 6 hours.
- **Your messages.** WP Waterfall does not keep the text of your messages. It keeps a short log for 30 days: the time, the status, the subject, how many people it went to, and their email domains. It does not keep addresses or message bodies. Support can use the log to tell you whether a message went out.

WordPress is told the message was sent as soon as WP Waterfall takes it. If a message is later refused (for example, a limit), it shows in the log, and WordPress does not hear about it. If the mail service can not be reached for a moment when WordPress sends, WordPress goes on the normal way.

## Can I send mail another way?

Yes. Install an SMTP plugin or a mail service plugin and set it up. WP Waterfall notices that the plugin took over the sending and does not touch that message, so the two never fight. This works with plugins such as [WP Mail SMTP](https://wordpress.org/plugins/wp-mail-smtp/), FluentSMTP, Post SMTP, and plugins for Postmark, SendGrid, Mailgun, and Amazon SES. WP Waterfall steps aside when a plugin does any of these:

- it sets its own sending method, such as SMTP, in the `phpmailer_init` hook
- it answers the `pre_wp_mail` filter
- it replaces the `wp_mail` function

To set up an SMTP plugin:

1. Install the plugin in WordPress.
2. Pick a mail service, such as your domain's email provider, Postmark, Amazon SES, Mailgun, or SendGrid. Create an SMTP login or API key there.
3. Enter the details in the plugin. Use port 587 or 465. Port 25 does not work, because Google Cloud blocks it.
4. Add the SPF and DKIM records your mail service gives you to your domain. If the domain uses [Cloudflare DNS](https://docs.wpwaterfall.com/dns) on WP Waterfall, add them there.
5. Send a test message from the plugin.

Use your own SMTP plugin when you want mail to come from your own domain, send more than the limits below, or keep your own logs. Your mail service then holds the sending reputation, limits, logs, and bills. To go back to the WP Waterfall mail service, deactivate the plugin.

## Why do staging and preview sites send nothing?

A staging or preview copy has the same plugin settings as live, so it could email your real customers. WP Waterfall stops mail on those sites, whatever mail plugin is set up. WordPress is told the message was sent, and nothing leaves the site. No copy is kept.

To test mail on staging, add this line to `wp-config.php` on that environment, send your test to an address you own, then remove the line:

```php
define( 'WPWATERFALL_ALLOW_MAIL', true );
```

Even then, only a live site sends through the WP Waterfall mail service. A staging site that sends mail through its own SMTP plugin, with that line added, is sent by the plugin. Live sites and local DDEV copies are not affected. A local DDEV copy has no WP Waterfall mail service, so it sends mail the way DDEV does.

## What are the limits?

The limits keep one noisy site from spoiling the mail of everyone else. They are well above what a shop, a blog, or a membership site needs.

| Limit | Value |
| --- | --- |
| Recipients per site per hour | 300 |
| Recipients per site per day | 1,500 |
| Recipients per company per hour | 1,000 |
| Recipients per company per day | 5,000 |
| Recipients on one message (To, Cc, and Bcc together) | 50 |
| Size of one message, files included | 2 MB |
| Files on one message | 10, and 1.5 MB together |

A message over a limit is not sent, and the log says which limit it hit. If your site often needs more, use an SMTP plugin.

WP Waterfall also pauses a site's mail for a day when a large share of it bounces or draws spam complaints. Check that you send only to people who asked for the mail. The pause ends by itself as the day moves on.

## Quick answers

**Password reset emails never arrive.** Check that the address is right and look in spam. Then [message Nami from the chat button](https://docs.wpwaterfall.com/support) to ask whether the message went out. If you use an SMTP plugin, send a test message from it and read [Mail problems](https://docs.wpwaterfall.com/troubleshooting-mail-problems).

**Can I turn the WP Waterfall mail service off?** No. It is part of the server. To send mail another way, install an SMTP plugin.

**Can I send from my own address?** Not through the WP Waterfall mail service. Replies go to your address, but the message comes from the WP Waterfall mail domain. Use an SMTP plugin to send from your own domain.

**Can I send from port 25?** No. Use port 587 or 465.

## Related

- [Mail problems: messages from WordPress do not arrive](https://docs.wpwaterfall.com/troubleshooting-mail-problems)
- [Emails we send](https://docs.wpwaterfall.com/emails-we-send)
- [Cloudflare DNS](https://docs.wpwaterfall.com/dns)
