Skip to main content

Email delivery

Your site sends email all the time: notifications, the codes members log in with, digests, welcome emails and the emails of every component. Email delivery decides how that email leaves your site, and from whom it says it comes.

Services, Email delivery: Postmark chosen, the sender name and address, the server API token kept, the bounce webhook address and Send a test
Settings → Services → Email delivery

It sends every email of the site, not only those of Poly Community: anything WordPress or another plugin sends with wp_mail() goes the same way.

Which way to choose​

  • WordPress mail sends with whatever sends your site mail now: the mail function of your host, or an SMTP plugin you already use. It is the default, and it changes nothing.
  • An SMTP server sends through a mailbox or a mail server you have, such as the one of your host, Google Workspace, Microsoft 365 or Amazon SES. See SMTP and Amazon SES.
  • Postmark, SendGrid and Mailgun send through a mail service, on an account of yours there. They deliver best, and they tell your site when an address bounces or a member marks your email as spam, so it is never sent to again. See Postmark, SendGrid and Mailgun.

On shared hosting, the mail function of the host often lands in spam folders or is not sent at all. If members say they never got their code, choose an SMTP server or a mail service.

Setting it up​

  1. Go to Poly Community → Settings → Services → Email delivery.
  2. Under Send with, press Change, then the way you want. Its settings open under it.
  3. Fill them in, as the guide of that way says.
  4. Press Save changes at the foot of the page.
  5. Press Send me a test email. One email goes to your own address, the way that is saved.
Send with: WordPress mail, An SMTP server, Postmark, SendGrid and Mailgun as tiles, with Cancel
Send with, after Change

The status at the top says which way the email is sent, such as Sent through Postmark. When an email could not be sent, it says so with what the server answered, and the Services page marks Email delivery as failing. The next email that goes out clears it.

The sender​

  • Sender name is the name members see in their inbox. Empty, it is the name of your site.
  • Sender address is the address the email comes from. Use an address at the domain of your site, such as community@example.com. A mail service sends only from a domain you have set up with it, and an address at another domain, such as a Gmail address, ends up in spam. Empty, it is the address WordPress uses, wordpress@ and your domain.

Addresses never sent to again​

Never sent to lists the addresses no email goes to: those that bounced for good, those whose owner marked your email as spam, and those you added. Postmark, SendGrid and Mailgun add them on their own once their webhook is set up, as each guide says. The rest of an email still goes out: if one of three addresses is on the list, the other two get it.

Never sent to: an address that bounced and one added by hand, each with Send to it again, and Add an address
Never sent to, under Email delivery

To stop email to an address yourself, type it under Add an address and press Never send to it. Send to it again takes an address off the list, for example after a member fixed their mailbox.

Where it is used​

Every email of the site goes this way. Two places rely on it most:

  • Notifications by email, under Settings → Notifications.
  • Ways to log in, where a code by email depends on the email arriving. See Ways to log in.

When another service of the site fails, the administrators get an email about it. A failure of Email delivery itself shows only as a notice in wp-admin, as an email about it could not arrive.