Customize account confirmation email

With the UserService, is it possible to customize the account confirmation email that is sent out.

I would like to add more content and style the email.

Thanks
SS

I believe you will have to use the custom login flow. This will allow you to hook into the “user confirmed email event”.

Click here for the docs on custom login flow.

3 Likes

I’m not trying to customize entire confirmation email here, I just want it to link to the custom url i set, not the …anvil.app url. Is there a way to simply do this? Or @meredydd might this be a feature request?

Hi @joinlook, a custom domain may fix the issue

Hi @joinlook,

This should be the default behaviour when hosting your app using a custom domain. Is your confirmation email linking to the .anvil.app domain?

yes the confirmation email comes from the custom domain but the link to 'confirm that this is your account" is the .anvil.app domain.

Dont know if it matters, but App A imports App B as dependency, where App B handles user authentication. The intent is to have the email come from App A custom domain and have the link in the email point to the App A custom domain as well.

@joinlook this isn’t the intended behaviour - we’ll get that fixed!

1 Like