Converting charset/encoding with ActionMailer


I need to change encoding on outgoing mails in ActionMailer. Since our
users to a surprisingly large degree still use email-clients that
doesn’t support UTF-8 we need to convert our mails to ISO-8859-1. Is
there any built-in support for this in ActionMailer?

Thanks a lot!

/David W


I believe there are 2 ways to do this.

  • in environment.rb set ActionMailer::Base.default_charset =
  • from within a method in your Mailer class set @charset = “ISO-8859-1”

Take Care


On 10/12/06, David W. [email protected] wrote:

/David W


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs