Appwrite icon

Appwrite

Interact with Appwrite API

Actions181

Messaging → Send Email

AI-generated

Overview

This node integrates with the Appwrite API to send emails as part of its messaging capabilities. It allows users to send emails with customizable parameters such as message ID, subject, content, recipients (users, topics, targets), and options for CC, BCC, and HTML formatting. It supports sending emails immediately or saving them as drafts. This node is useful for automating email notifications, marketing campaigns, or transactional emails within workflows.

Use Case Examples

  1. Sending a notification email to a list of users when a new event occurs.
  2. Sending a marketing email to multiple topics or user groups with HTML content.
  3. Saving an email as a draft for review before sending.

Properties

Name Meaning
Message ID Unique identifier for the email message, used to track or reference the message.
Subject The subject line of the email to be sent.
Content The body content of the email, which can be plain text or HTML depending on the HTML flag.
Topics Comma-separated list of topic IDs to send the email to, allowing targeting of specific groups.
Users Comma-separated list of user IDs to send the email to, specifying individual recipients.
Targets Comma-separated list of target IDs to send the email to, another way to specify recipients.
Draft Flag indicating whether to save the email as a draft instead of sending it immediately.
HTML Flag indicating whether the email content is formatted as HTML.
CC Comma-separated list of email addresses to be added as CC recipients.
BCC Comma-separated list of email addresses to be added as BCC recipients.

Output

JSON

  • messageId - The unique identifier of the sent or drafted email message.
  • status - The status of the email operation, e.g., sent or saved as draft.
  • response - The raw response from the Appwrite API after attempting to send or save the email.

Dependencies

  • Appwrite API key credential for authentication

Troubleshooting

  • Ensure the Appwrite API credentials (endpoint, project ID, API key) are correctly configured to avoid authentication errors.
  • Verify that the messageId is unique to prevent conflicts or overwriting existing messages.
  • Check that the email addresses in CC and BCC fields are correctly formatted to avoid sending failures.
  • If the email content is marked as HTML, ensure the content is valid HTML to prevent rendering issues.
  • Network or API rate limits may cause retries or failures; monitor logs for such issues.

Discussion