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
- Inviting members while SMTP is disabled ...
Issue: https://github.com/appwrite/console/issues/3125 PR: https://github.com/appwrite/console/pull/3126
- Appwrite Sites: ERR_TOO_MANY_REDIRECTS o...
So, my domain was working perfectly fine with Vercel. I was using cloudflare CDN (still am) but CNAME was DNS-only. I switched over to appwrite, CNAME is still ...
- Charged after Downgrade
I downgraded from the pro plan last month, but it’s still trying to charge my card this month and my account has been restricted