I just wrote a phoenix email renderer. When i send the email through the app, the external css does not get rendered and also the mailer.html layout was not picked up.
Am i doing something wrong below?
def invitation_email(conn, to_email) do
html = View.render_to_string(MailerView, "invitation.html", layout: {LayoutView, "mailer.html"}, conn: conn)
send_email to: to_email,
from: "hi@#{conn.host}",
subject: "Invitation from #{conn.host}!",
html: html
end