-
Notifications
You must be signed in to change notification settings - Fork 256
-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preview for mail with attachments #135
Comments
I've started having this problem after upgrading from premailer-rails 1.4.0 / premailer 1.7.3 to premailer-rails 1.8.0 / premailer 1.8.4 with rails 4.2.1. Possibly related to rails/rails#14435. |
Looks like no preview hook was registered until 1.7.0 so Premailer wasn't being used for previews. That explains why I didn't have this problem before. |
Fairly sure this is a Rails bug. The problem is triggered when Premailer generates a text part, substituting the There are a couple of open PRs which aim to fix this: rails/rails#14519, rails/rails#15569. |
Closing as this seems to be a rails issue. |
I'm not sure how it's related to this gem, but when I use
skip_premailer: true
everything works fine.Mailer function:
When I send a real email it is OK but doesn't work on email preview page. I get following error:
Lines pointed in error report:
lib/rails/templates/rails/mailers/email.html.erb
I have absolutely no idea how to track down and fix this problem.
The text was updated successfully, but these errors were encountered: