Cover graphic reading Reliable email from your website: bookings, invoices and OTP codes
Reliable email from your UAE business website: bookings, invoices and OTP codes

Reliable email from your UAE business website: bookings, invoices and OTP codes

When a patient books a clinic appointment online, a buyer pays for an order, or a customer signs in with a one-time code, your website sends an email. Nobody notices these emails when they work. When they land in spam, the customer calls, messages you on WhatsApp, or goes elsewhere.

This guide covers why website email fails, how to set up your domain for it, when to use a transactional email API, and how to test it all before customers find the problems.

Website email is not the same as staff email

Most businesses set up email for staff first: a Google Workspace or Microsoft 365 mailbox for each person. Our guide to business email on your own domain covers that part.

Website email is different. It is sent by software, not by a person, and it is triggered by something the customer just did:

  • Booking confirmations and reminders for clinics, salons, gyms, car service centres and property viewings
  • Order emails and tax invoices from WooCommerce, Shopify or your accounting system
  • One-time codes (OTP) and password reset links for customer accounts
  • Form notifications that tell your own team a new enquiry has arrived

Customers expect these messages, so a missing one turns into a support call. Some are also time-sensitive: a sign-in code that arrives ten minutes late is useless.

Why website email ends up in spam

On a typical website, email goes out through the hosting server’s built-in mail function. That causes the same problems again and again:

  • The server is not allowed to send for your domain. Your SPF record lists Google or Microsoft, but the website sends from the hosting server’s IP address. The receiver sees a message from your domain, sent by a server you never listed.
  • No DKIM signature. Most shared hosting does not sign outgoing mail with your domain’s key, so DMARC cannot pass.
  • Shared reputation. On shared hosting, many other sites send from the same IP address. If one of them is hacked and sends spam, your invoices suffer too.
  • Blocked ports. Many cloud and VPS providers block outgoing mail on port 25, so mail from the server may never leave, and the website shows no error.

If your forms went quiet after you moved the website to new hosting, check outgoing mail first.

Step 1: choose the sending address

Decide which address customers will see, for example bookings@yourclinic.ae or invoices@yourcompany.com. Use an address that someone reads rather than noreply@. Customers reply to invoices and booking emails with questions, and those replies should reach a person.

Many services also let you send from a subdomain, such as mail.yourcompany.com, which keeps the reputation of website email apart from staff email.

Step 2: publish the domain records

Whichever service sends your website email will give you DNS records to add. They usually look like this:

Record What to do
DKIM Publish the key on the exact host name the service gives you, so messages are signed with your domain
Return-path Usually an MX and TXT record on a subdomain, so bounces come back to the service under your domain
SPF Add the service to your existing SPF record. Never create a second one
DMARC One record on _dmarc for the whole domain. Start with p=none and a report address

A common mistake is adding the records but never clicking “verify” in the service’s dashboard. Most services will not send from your domain until verification passes.

Step 3: send through a transactional email API

A transactional email API is a service built for this kind of mail. Your website sends each message with one HTTPS request instead of the server’s mail function. You get DKIM signing on your domain and a log of every email with its delivery status.

One option is AgentiSend, a transactional email API that handles password resets, receipts and sign-in codes, with webhooks, scheduled sends and a delivery log. The AgentiSend quickstart guide walks through the setup: add your domain, publish the DKIM and return-path records it gives you (SPF and DMARC are recommended), run the verify step, create an API key, then send with one POST request. The free plan covers 5,000 emails a month, up to 170 a day, with no card needed, which is enough for many small businesses.

Two things to check with any provider:

  • Where mail is sent from. AgentiSend currently sends all mail from the US. If your sector has rules about where customer data is processed, for example health care or financial services, check with your compliance adviser before choosing any provider based outside the UAE.
  • Duplicate protection. If your site retries a send after a timeout, the customer can get two invoices or two codes. AgentiSend supports an Idempotency-Key header: send the same key on the retry and the email goes out once.

On WordPress and WooCommerce, almost all mail goes through wp_mail(), so a developer can route it to an API in one place without changing each plugin.

If an AI assistant sends email for you

Some businesses now run AI chat assistants that book appointments and send follow-up emails. An assistant decides for itself when to send, so a fault can send the same email many times. Give it its own API key with a daily limit, and know how to stop all sending quickly. AgentiSend has these controls built in: a send budget per key, a kill switch, and an approval queue for emails a person should review first.

Arabic and bilingual emails

If your website is in Arabic and English, each email should match the language the customer used. Two technical points: the email must be sent as UTF-8, or Arabic text arrives as question marks, and Arabic content needs dir="rtl" in the HTML so lists and numbers line up correctly. Our guide to planning a bilingual Arabic and English website covers the rest of the site.

Step 4: test before customers do

  1. Use test addresses first. Many APIs offer addresses that accept mail and deliver it nowhere. With AgentiSend, any address at simulator.agentisend.com works this way, so you can run a full booking or checkout without emailing real people.
  2. Send to real inboxes. Send each email type to Gmail, Outlook.com and a company mailbox, and check the spam folder too.
  3. Read the headers. In Gmail, open the message and choose “Show original”. SPF, DKIM and DMARC should all show PASS, and DKIM should show your domain, not the provider’s.
  4. Time the codes. Request an OTP and note how long it takes to arrive. More than a minute is too slow for a sign-in code.
  5. Try a retry. Submit a form twice quickly, or refresh the payment confirmation page. The customer should get one email, not two.

Step 5: keep watching after launch

Check two numbers every week: bounce rate (emails to addresses that do not exist) and complaint rate (people clicking “report spam”). AgentiSend, for example, warns at a 2% bounce rate or a 0.05% complaint rate and pauses sending at 4% or 0.08% to protect the domain. Once your DMARC reports show that all your real mail passes, you can move DMARC from p=none to p=quarantine.

Check again after any change to the website, hosting or DNS. A new plugin or a deleted DNS record can stop website email without any visible error.

Checklist

  • List every email your website sends, and send from an address someone reads.
  • Publish the DKIM and return-path records, and keep a single SPF record.
  • Add DMARC with p=none and read the reports.
  • Send through a transactional email API, not the hosting server’s mail function.
  • Test with simulator addresses, then real inboxes, then the headers.
  • Check bounce and complaint rates every week.

If you would like us to check how your website sends email, or set it up for you, contact us.

Share: