sighmon / mjml-rails

MJML + ERb/Haml/Slim view template
https://mjml.io
Other
295 stars 64 forks source link

How to custom template path? #110

Open tonylee00111 opened 11 months ago

tonylee00111 commented 11 months ago

This is my code mail(to: @profile.email, subject: 'Test mail ', template_path: 'mailer/user') When using template_path:, the following error appears: ActionView::MissingTemplate (Missing template user_mailer/order_success, application_mailer/order_success with {:locale=>[:en], :formats=>[:text], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :mjml]}) How should I modify the mail template path?

sighmon commented 11 months ago

@tonylee00111 If you'd like help with implementation please setup a repository that we can run so we can replicate the error and help you debug it.