Short answer: authenticate your domain, send transactional mail from its own subdomain and sender, send it the moment the event happens, keep each email to one purpose, and watch bounces and delivery times in real time.
Set up the sending domain properly
- 1. Publish SPF, DKIM and DMARC. Gmail, Yahoo and Outlook expect all three. Start DMARC at
p=none, read the reports, then move toquarantine. See SPF, DKIM and DMARC explained. - 2. Use a subdomain for transactional mail.
mail.yourdomain.comfor transactional andnews.yourdomain.comfor marketing keeps their reputations apart. - 3. Use your own tracking domain if you track clicks. Links on
links.yourdomain.commatch your brand instead of a shared domain.
Send it fast and send it once
- 4. Trigger the email from the event, not a cron job. A sign-in code that arrives two minutes late has often already expired.
- 5. Retry the API call carefully. If a request times out, check the delivery logs before sending again, so the user doesn’t get two password resets.
- 6. Make links and codes expire. Short expiry times protect the account. Say in the email how long the link or code is valid.
Write for one job
- 7. Make the subject say what is inside. “Your sign-in code”, “Reset your password”, “Receipt for order #1042”. No clever subject lines.
- 8. Put the action at the top. The code, button or total should be visible on a phone without scrolling.
- 9. Include a plain-text part. Send both HTML and plain text. Some clients and many security tools prefer it.
- 10. Leave promotions out. A discount banner turns a receipt into a marketing email, with all the rules that come with it.
Watch what happens after you send
- 11. Stop sending to hard bounces. An address that doesn’t exist will never start working. Keep your bounce rate under 2%; see the bounce rate guide.
- 12. Monitor delivery in real time. Use webhooks or delivery logs to catch a spike in bounces or deferrals the moment it starts, not when users complain.
A quick checklist before launch
- SPF, DKIM and DMARC pass for the sending domain.
- Transactional mail has its own subdomain, sender and API key.
- Every email has a clear subject, the action at the top and a plain-text part.
- Hard bounces stop future sends, and someone is alerted when bounces jump.
- A real person can reply, or the email says where to get help.