Skip to content

Messaging

Bird email_

Send emails to your Appwrite users through Bird's email API and Appwrite Messaging.

5 min read

Raw

Bird lets you send customized email messages to your users. These emails can be sent immediately or scheduled. You can send emails for purposes like reminders, promotions, announcements, and even custom authentication flows.

The Bird email provider sends through Bird's HTTP email API with a Bird API key, so it doesn't need SMTP settings. To send SMS through Bird too, add a Bird SMS provider next to it.

1. Add provider

To add Bird as an email provider, navigate to Messaging > Providers > Add provider.

Add a Bird provider
Add a Bird provider

Bird is listed under both Email and SMS. Choose Bird under Email to open the Configure Bird step.

2. Configure provider

In the Configure Bird step, you need a Bird API key and a sender on a verified domain. On Appwrite Cloud, you can let Appwrite create the API key for you with one-click setup, or fill in the fields by hand.

Configure Bird email provider
Configure Bird email provider

One-click setup

On Appwrite Cloud, the Configure Bird step opens with a One-click setup card above the form.

  1. Click Connect with Bird and authorize Appwrite in Bird. You are returned to this step with your Bird workspace connected.
  2. Select a verified Domain. Domains that Bird hasn't verified yet are listed but can't be selected. If none are verified, click Manage domains, verify one in Bird, and click Check again.
  3. Click Generate API key.
  4. Review the fields and click Create provider.

One-click setup card with a verified Bird domain selected
One-click setup card with a verified Bird domain selected

Appwrite creates an API key in your Bird workspace named Appwrite SMTP: <project name> with only the emails:write scope, and fills it into the API key field. Bird keys aren't tied to a domain, so the domain you pick sets the sender address. Appwrite also fills any empty fields: the Sender email becomes noreply@<domain> unless the one you typed is already on that domain, the Sender name defaults to your project name, and the provider Name defaults to One-click Bird sender.

If you leave the wizard without creating the provider, Appwrite revokes the key it generated so it doesn't stay unused in your Bird workspace. Clicking Generate API key again replaces the key in the form and revokes the previous one.

The Bird connection lives on your Console account and is shared with the Bird SMS provider and the one-click SMTP setup in project settings. Connecting once covers all three.

Configure manually

You will need to provide the following information from your Bird dashboard.

Field name
NameA name for the provider in Appwrite.
API keyHead to Platform tools > API keys and create a key with the emails scope at the write level. Bird keys start with bk_ and your region, for example bk_eu1_, and Appwrite uses that prefix to send to the right regional API. See Bird's authentication guide.
Sender emailThe provider sends emails from this address. It must be on a domain verified under Email > Domains in Bird. See Bird's sending domains guide.
Sender nameThe sender name that appears in the emails sent from this provider.

After adding the details, click Create provider. The provider is enabled once it has both an API key and a sender email. To set a reply-to name and email, open the provider from Messaging > Providers after it's created, or pass replyToName and replyToEmail through the API.

How Bird email delivery works

  • One message per recipient. Each recipient in To gets a message of their own, with any CC and BCC addresses copied on each. Appwrite sends several recipients to Bird in batches of up to 100.
  • Transactional category. Messages are sent with Bird's transactional category, so Bird delivers them as written, without adding an unsubscribe link.
  • Size limit. A message can be at most 20 MB, counting its body and its attachments after base64 encoding, which makes about 15 MB of attachments. Larger messages fail without reaching Bird.
  • Per-recipient errors. If Bird refuses a recipient in a batch, Appwrite retries that batch one message at a time, so only the refused recipient fails. Bird refuses placeholder domains such as example.com and test.com, so use real addresses or Bird's sandbox addresses, such as delivered@messagebird.dev, for test targets.

3. Test provider

Before sending your first message, make sure you've configured a topic and a target to send messages to.

To send a test message, navigate to Messaging > Messages > Create message > Email.

Create email message
Create email message

Add your message and in the targets step, select one of your test targets. Set the schedule to Now and click Send.

Verify that you can receive the message in your inbox. If not, check for logs in the Appwrite Console or in your provider's logs.

You can follow the Send email messages guide to send your first email message and test your provider.

4. Manage provider

You can update or delete a provider in the Appwrite Console.

Navigate to Messaging > Providers > click your provider. In the settings, you can update a provider's configuration or delete the provider.

Was this page helpful?

Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.