by mikeatlas · 12y ago · 0 comments
Or, you could easily just create controller actions which render your emails as well:
@body = mail.body.parts[1].html_part.body.raw_source
render '/mailer_notification/preview.html', :layout => false
And in preview.html.erb: <%= raw(@body) %>
No comments yet.