Forum: Ruby on Rails emails from rake not being sent as html

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
phil (Guest)
on 2008-10-10 14:35
(Received via mailing list)
I have an email that is sent from either a rake task or from a user
action. When it is sent from the user action it gets delivered as
nicely formatted html. When sent from the rake task it is text, with
all the html code visible.

Is there a setting I am missing?
senthil (Guest)
on 2008-10-10 16:16
(Received via mailing list)
ActionMailer::Base.default_charset = "utf-8"
ActionMailer::Base.default_content_type = "text/html"

this should fix the problem

This topic is locked and can not be replied to.