Booking confirmations
Send the date and arrival details when a customer completes a booking.
Send booking confirmations and account updates from your own domain with Gomry Cloud Mail. See which messages were delivered or bounced.
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"
}'
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.
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.
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.
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.
Send the date and arrival details when a customer completes a booking.
Tell a user when an account setting or an email address changes.
Send a reset link when a user requests one.
Email customers a receipt after they pay.
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.
Open the Cloud console to choose a project and manage its API keys.