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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
A07f0662e96a632d9447a710adadbe05?d=identicon&s=25 phil (Guest)
on 2008-10-10 12: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?
B1ff4ab950790c40c79618de24e343e5?d=identicon&s=25 senthil (Guest)
on 2008-10-10 14:16
(Received via mailing list)
ActionMailer::Base.default_charset = "utf-8"
ActionMailer::Base.default_content_type = "text/html"

this should fix the problem

Senthil

http://railsfactory.com/
This topic is locked and can not be replied to.