
I want to use a custom template for my verify email and forgot password mails, and I don’t think Appwrites current template has allowances for what I want to create (a template with images, custom font etc). How can I achieve this?
I tried using a template I created and pass in the data from the createVerification object, but secret keeps returning an empty string

Pass in data from create verification object? What do you mean?

You should be able to define a custom template in the console after adding a custom project SMTP

I mean, i tried to manually pass in the data returned when you create an email verification (https://appwrite.io/docs/references/cloud/client-web/account#createVerification) but it doesn’t return the secret

Sorry, I don't understand. Maybe you can share a screenshot or code to give more context?

Can I add an image in this custom template?

const res = await account.createVerification(${BASE_URL}/about
);
const firstName = user?.name.split(' ')[0];
const redirectLink = ${BASE_URL}/about?userId=${res.userId}&secret=${res.secret}&expire=${res.expire}
;
// plug in verification data to template
await axios.post('/api/welcome-user', {
to: email,
title: `Welcome, ${firstName}!`,
redirectLink,
});
This is what I mean

Btw, it's best to use 3 back ticks with multi-line code. See https://www.markdownguide.org/extended-syntax/#syntax-highlighting

No, that's not how you customize the emails

Noted. Thank you

Is the only way to go about it from the console? With custom a SMTP server?


Alright, thank you
Recommended threads
- Use cloudflare origin certificate instea...
Hello! Is it possible to use cloudflare origin certificates instead of let's encrypt? We manage all ssl certs in our cloudflare account and our VMs has a firewa...
- Error getting session: AppwriteException...
I get this error `Error getting session: AppwriteException: User (role: guests) missing scope (account)` when running in prod. As soon as I try running my app o...
- Unable to View / Edit Bucket Files
Hi! I am unable to view / edit Bucket Files. While Previews work just fine, clicking the actual file to view or edit it produces the errors seen in the attache...
