Actions181
- Account Actions
- Get Account
- Create Account
- Update Email
- Update Name
- Update Password
- Update Phone
- Update Status
- Get Preferences
- Update Preferences
- List Sessions
- Delete Sessions
- Get Session
- Update Session
- Delete Session
- Create Anonymous Session
- Create Email/Password Session
- Create Magic URL Session
- Create OAuth2 Session
- Create Phone Session
- Create Session from Token
- Create JWT
- Create Magic URL
- Create Phone Token
- Create Email Verification
- Update Email Verification
- Create Phone Verification
- Update Phone Verification
- Create Password Recovery
- Update Password Recovery
- Create Recovery
- Update Recovery
- Update MFA
- Create MFA Authenticator
- Update MFA Authenticator
- Delete MFA Authenticator
- Create MFA Challenge
- Update MFA Challenge
- Attribute Actions
- Avatars Actions
- Collection Actions
- Database Actions
- Document Actions
- Functions Actions
- Index Actions
- Locale Actions
- Messaging Actions
- Sites Actions
- Storage Actions
- Teams Actions
- Users Actions
Messaging → Send Email
AI-generatedOverview
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
- Sending a notification email to a list of users when a new event occurs.
- Sending a marketing email to multiple topics or user groups with HTML content.
- 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.