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
put_private(conn,:pow_mailer_layouts,html: {MyAppWeb.Layouts,:email},text: false# If you use layout for textput_private(conn,:pow_mailer_layouts,html: {MyAppWeb.Layouts,:email},text: {MyAppWeb.Layouts,:email_text}
The Layouts module may look something like:
defmoduleMyAppWeb.Layoutsdo@moduledocfalseuseMyAppWeb,:htmlembed_templates"layouts/*.html"# If you use layout for textembed_templates"layouts/*.text",suffix: "_text"end
You can see how text email uses a suffix to avoid conflicts with the embed_templates. This is so we can use the Phoenix HTML helpers. You could also split it in two separate modules (one for HTML emails and one for text emails).
Hello!
I spotted a warning mentioning that
pow_mailer_layout
had been deprecated and it is indeed even in the changelog.Are there migration instructions anywhere to moving from the old to the new?
The text was updated successfully, but these errors were encountered: