You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defmodule App.EmailTemplate do
def reset do
host = Addict.Configs.host || "http://localhost:4000"
"""
<p> You have requested a password reset. </p>
<p> Follow the link below and set a new password </p>
<p> Click <a href='#{host}<%= path %>'>here</a> to proceed!</p>
<p> Test <%= name %>, </p>
<p> <a href="https://xkcd.com/936/" tabindex="-1" target="_blank" style="font-style: italic;">How to pick a password</a></p>
"""
end
end
The text was updated successfully, but these errors were encountered:
I can replicate all these errors, but also cannot see what to do next. This a real problem as the only other way seeming to override the default text is to add to config.exs something like
email_reset_password_template: "<p>Welcome to the Business Center!<br> A new user account has been created for you (or your password has been reset).
Please click <a href='#{host}<%= path %>'>here</a> to proceed!</p>",
I haven't read the source, but the second one fails either because addict needs to know to use Kernel.apply with your arguments, or because that function is not available from addict, even though it is within the context of your entire application (which is where I'm presently floundering)
Hi im trying to get email templates to work but without success.
gives me this
this compiles
But gives me this runtime exception.
Here is my file
controllers/email_templates.ex
The text was updated successfully, but these errors were encountered: