Converting charset/encoding with ActionMailer

Hi,

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

Hi

I believe there are 2 ways to do this.

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

Take Care

Aneesha