# Send branded emails from your app

Source: https://business.gomry.com/cloud/mail

Send booking confirmations and account updates from your own domain with Gomry Cloud Mail. See which messages were delivered or bounced.

[All Cloud services](/cloud) · [Send your first email](#set-up-your-sender)

Example request · POST /v1/mail/emails

```sh
curl https://api.cloud.gomry.com/v1/mail/emails \
  -H "Authorization: Bearer $GOMRY_CLOUD_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": {"email": "events@example.com"},
    "to": ["ada@example.org"],
    "subject": "Your booking is confirmed",
    "html": "<p>See you on Saturday.</p>",
    "idempotencyKey": "booking-123-ada"
  }'
```

## Set up your sender

1. **Verify your sending domain.** Add your domain in Gomry Cloud Mail. Gomry gives you three records to copy into your domain provider’s DNS settings. Once your domain is verified, you can send from an address like bookings@yourbusiness.com.

   With Mail enabled for your Cloud project, call `POST /v1/mail/domains` with a key that has the `mail:domains` scope. Pass your domain as `name` to get the three CNAME records. Gomry uses DKIM to sign outgoing emails so receiving mail servers can verify the signature for your domain.
2. **Choose a sender and key.** Pick a From address on a verified domain in your project or on a subdomain of it. Use a Cloud key with the `mail:send` scope.
3. **Send a test email.** Make sure your organization has an active payment method. Set `GOMRY_CLOUD_KEY` and replace the example addresses with your sender and a test recipient. Reuse the same `idempotencyKey` when retrying that send to avoid a second email or charge.

## See which emails were delivered

Mail sends a separate email to each recipient. The sending provider first accepts the email for sending. The message status tells you what happened next, such as whether it was delivered or bounced.

Your app can look up a message’s status or receive signed webhooks for delivery (`email.delivered`), bounces (`email.bounced`), and complaints (`email.complained`). Register your webhook with a key that has the `mail:webhooks` scope.

Mail does not retain the message body after sending.

## What you can send

### Booking confirmations

Send the date and arrival details when a customer completes a booking.

### Account updates

Tell a user when an account setting or an email address changes.

### Password resets

Send a reset link when a user requests one.

### Order receipts

Email customers a receipt after they pay.

## How email billing works

You pay 0.035¢ for each email the provider accepts for sending. The API response shows that number in `accepted`, and Gomry bills monthly for those emails. If an address has previously had a permanent bounce or a complaint, Mail skips that address and charges nothing for the skipped message.

## Start with a Cloud project

Open the Cloud console to choose a project and manage its API keys.

[Open Cloud console](https://cloud.gomry.com/orgs) · [Read the Cloud quickstart](https://docs.cloud.gomry.com/quickstart) · [All Cloud services](/cloud)
