Outbound email
Send a site's email from your own domain, add its DNS records and send a test.
On this page
Before you start
- You can open the site in Managed Websites. Anyone who can open a site can set up its email.
- You can add DNS records for the site's domain, at your DNS provider or through Cloudflare.
- Until Production has a sending domain, the email it sends is not delivered. A staging environment's email is caught in Mailpit and never reaches a real inbox. On a WordPress site whose platform plugins are off, only email sent with PHP mail is caught: an SMTP plugin with live credentials can send real email.
Set up a sending domain
Open the site's outbound email
Go to Managed Websites, choose the site, then Outbound email under Site settings. A site with no sending domain reads Not set up.
Create the sending domain
Choose Set up email sending. Keep the Sending domain, a subdomain used only for mail, enter the Sender address the site sends from, then choose Create sending domain.
Add the DNS records
The card reads Waiting for DNS and DNS records lists what to add. Add each Type, Name and Value at your DNS provider (Copy copies a value); the two MX records are optional.
Check the records
Choose Re-check. The records are checked again a few minutes later.
When the 3 required records are valid, the card reads Verified and the site's mail goes out from your domain. Until then, mail the site sends is queued and not delivered: add the records straight after you create the domain.
With the domain's zone connected in Cloudflare, Add these records in Cloudflare adds them for you. See Connect Cloudflare.
Send a test email
Send the test
On a verified sending domain, enter the Recipient under Send a test email and choose Send test. On a Magento 2 site, choose Send test email on the sending domain's row first.
The message is sent from the site, as the site's own mail is. A site sends up to 20 tests a day.
Change or remove a sending domain
| Button | What it does |
|---|---|
| Rotate credentials | Gives the site a new login for sending. Mail keeps going out throughout. |
| Remove sending domain | Puts the site back on Corefinity's sender first, so mail keeps going out. Type the sending domain to confirm. DNS records you added stay until you delete them. |
| Add sending domain | On a Magento 2 site, adds a sending domain for a store that sends from another domain, up to 5 for each site. |
Automate this
Creates the site's first sending domain, by default mg. followed by the site's domain, and makes the site send through it.
curl -X POST https://manage.corefinity.com/api/corestack/sites/1042/email \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"sender": {
"address": "[email protected]",
"name": "Harbour & Finch"
}
}'Your assistant calls corestack_email_enable.
{
"name": "corestack_email_enable",
"arguments": {
"site_id": 4211,
"sender": {
"address": "[email protected]",
"name": "Example Shop"
}
}
}