I have some email templates for new users I’d like to use, I’ve pushed them to the root of my git and refer to them as email/invite.html in identity settings, but when I go and add myself I get the default template still. My repo root is my build directory, so I that’s not the issue.
If anyone has had this issue or just knows the solution cause they are at that level of cool then I’d really appreciate any help or ideas.
I’d still bet we are not finding the files; that’s the usual reason for not using them. Good start that you have them deployed - that is one that some people miss . Mind linking me to your site’s identity page so I can take a look?
@fool apologies for hijacking this thread but have an issue where one email template is being found (the invitation) but the other (password recovery) not (it’s not sending out any email). Both templates are deployed to the same path, and are being referenced correctly in settings. Even tried pointing both paths to the same working template but to no avail.
Is there a special condition for the password recovery email that I’m missing?
Hey, sorry for missing @fool 's response. My issue ended up being that my templates weren’t really deploying to the folder I thought they were in production (forgot to merge a branch). Silly problems on my end.
Oh, I don’t think that’s a hijack @ohwhen ; seems relevant and related to me!
Could you tell me your site ID (from the general settings page) so I can try to investigate? It seems unlikely that @aanunez’s situation is the same as yours, based on your description…
Nobody else can use your site ID unless they are collaborators on your account, so is safe to share here. It’s on your general settings page for the site.
Also currently I have set the recovery back to its default template, but whenever I use the path /emails/recover.html (which is publicly accessible) it won’t sent any recovery emails out.
Thanks for that detail! I can see the file in place and it should work fine. When you try to use it in a test and it fails, could you save a precise timestamp and timezone for the attempt so I can look in our system error logs for you? I don’t really know any easier way to debug it so hopefully there’s an error logged that will guide us, but our logs are huge (1.5TB/day) so I can’t really search around for it easily…
All Identity-generated emails have basic templates built in. You may customize them by creating new templates and publishing them to a path on your site, then specifying the path (relative to the site domain) to the template in Settings > Identity > Emails .
Suggestion:
All Identity-generated emails have basic templates built in. You may customize them by creating new templates and publishing them to a path on your site (they must be accessible after deployment), then specifying the path (relative to the site domain: /_identity/invitation.html for instance) to the template in Settings > Identity > Emails .
@dpsg-toelz, Thanks for your suggestions! Our eternal struggle with docs is keeping them detailed enough to cover most use cases, but concise enough that people will actually read them! I’ve made a PR to add some extra detail without getting too repetitive.
I’ll file an issue to add another docs link to the UI. I love making the UI more instructive where we can, because that’s where people are working! For example, we have an extra hint about how to write your custom file path as a placeholder in the UI for setting the path:
Hi Guys, I am new to all of this and learning as I go. I am struggling to get the template to deploy/upload & then be accessible after deployment. I have it in the root of my site but it does not seem to be working @dpsg-toelz - Do you have any advice for a newbie Thanks