Skip to content
Back

Email Templates for OTP Session

  • 0
  • Messaging
  • Cloud
abdulelahsg
23 Dec, 2024, 11:15

Hi, I have Pro subscription and want to use the email templets the default setup is ``` <p>Hello {{user}},</p>

<p>{{emails.otpSession.body}}</p> <p><a href="{{redirect}}" target="_blank">{{redirect}}</a></p> <p>{{emails.otpSession.footer}}</p> <p style="margin-bottom: 32px"> Thanks, <br/> {{project}} team </p>``` I tried to customize the email but the OTP is not shown in the email. I received something like this {{emails.otpSession.body}}
TL;DR
- Developer has Pro subscription and is customizing email templates for OTP session - Tried to include OTP in the email but it's not showing up - Solution: Check the syntax for variables and ensure they are correctly placed in the email template. Use the provided guide for writing message templates.
Chirag Aggarwal
23 Dec, 2024, 11:27

you can follow this guide to properly write message templates: https://appwrite.io/docs/advanced/platform/message-templates

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more