-
Notifications
You must be signed in to change notification settings - Fork 61
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
Devise emails sending as plaintext. #38
Comments
Continuing investigation on a new rails app: https://github.com/dgobhai/sparkpost Docs say config file/block is not necessary:
but it seems to be. Here is the error output from heroku log when attempting to send a forgot password email from devise: 2016-10-14T21:45:58.699558+00:00 app[web.1]: <p>Your password won't change until you access the link above and create a new one.</p>
2016-10-14T21:45:58.699559+00:00 app[web.1]:
2016-10-14T21:45:58.699842+00:00 app[web.1]: Completed 500 Internal Server Error in 428ms (ActiveRecord: 5.4ms)
2016-10-14T21:45:58.701412+00:00 app[web.1]:
2016-10-14T21:45:58.701416+00:00 app[web.1]: NoMethodError (undefined method `html_content_only' for nil:NilClass):
2016-10-14T21:45:58.701418+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/sparkpost_rails-1.4.0/lib/sparkpost_rails/delivery_method.rb:164:in `prepare_inline_content_from' |
After adding the config: SparkPostRails.configure do |c|
c.api_key = ENV.fetch('SPARKPOST_API_KEY')
c.sandbox = true
end The logs show an html email being sent:
But the email that comes across is plain text with html tags still in it:
|
The issue with the configuration file is: def self.configure
self.configuration ||= Configuration.new
yield(configuration)
end except |
The same issue for me, any workarounds? |
Team please respond to to this. Same with me. |
include both a text and html template and things should all work just fine |
So, just add this to the initializer
|
attempting to isolate the problem, I have disabled tracking
Emails sent with our custom mailer are sending fine, however Devise generated emails: Forgot password, are sending as plaintext when they should be html.
I'm trying to figure out what devise is doing with
type
, still looking...The text was updated successfully, but these errors were encountered: