ActionMailer::Base.default_charset = "utf-8"
ActionMailer::Base.default_content_type = "text/html"

this should fix the problem

Senthil

http://railsfactory.com/


On Oct 10, 3:34 pm, phil <[EMAIL PROTECTED]> wrote:
> 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?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to