Proposal: allow environment variable substitution in mail templates #865
-
Rather than just I have a use case where PocketBase is not hosting the front end, so |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hm, I'll have to think a little more on this before adding it to the roadmap since we'll have to change how the placeholders are resolved (currently we have a fixed set of placeholders that we just replace in the mail template string, but with the dynamic placeholders we'll have to extract them first from the mail template and then replace them with the For now, It is safe to change the |
Beta Was this translation helpful? Give feedback.
-
@ganigeorgiev this is somewhat related to #4943. I think a simple concept for multi tenant simply for the purpose of sending mail would be quite useful. Particularly if you wanted to use PocketBase for authentication on or even a conduit for S3 Buckets etc. |
Beta Was this translation helpful? Give feedback.
Hm, I'll have to think a little more on this before adding it to the roadmap since we'll have to change how the placeholders are resolved (currently we have a fixed set of placeholders that we just replace in the mail template string, but with the dynamic placeholders we'll have to extract them first from the mail template and then replace them with the
os.Getenv
value). Additionally I have some other plans for the mail templates in relation to #593, but that will be handled after the v0.8 release and the future migration flow improvements.For now, It is safe to change the
APP_URL
to your frontend address because this field is currently used only in the mail templates (in future I'll con…