Referring to messaging documentation, I want to send email for order/activity confirmations from my app
Each order/activity confirmation email will be have parameters like "name", "order_id" and so on and will be unique for every email
Example of email:
TypeScript
Hi {{first_name}},
Your order has been confirmed
Order Details:
Id: {{order_id}}
Date: {{order_date}}
Reference: {{order_reference}}
Thank you,
ACME Company
- How do I setup my Message with params/variables? (I see option to create Message in dashboard, but how should I format the params/variables?
- How do I pass those params/variables in the SDK while sending Email?
https://appwrite.io/docs/products/messaging/send-email-messages
TL;DR
Developers are looking to insert parameters like "name", "order_id" in email body.
Solution:
1. To set up messages with parameters, format them as shown in the example email.
2. Pass the parameters in the SDK while sending the email according to the documentation provided at "https://appwrite.io/docs/products/messaging/send-email-messages".Recommended threads
- API key without database.read/write
I had some issues with my previous API key and I deleted it then I wanted to create a new one and discovered the database checkbook has no database.read/write j...
- dynamic key missing scopes for database ...
Here are the scopes listed, I get permission errors for reading row and document. Appears to be missing since last time i checked. Database 6 Scopes policies....
- No server error on selfhosted appwrite
Please help me, my clients is ask what happen on their data? How can i make it up again?