maček
maček

Reputation: 77778

Encode mail as quoted-printable before sending in Rails

I saw this question and couldn't make use of it: Ruby email encoding and quoted-printable content

I'd like to send out email as quoted-printable, but it's going out as unencoded text/html. Any help?

class UserMailer < ActionMailer::Base

  def welcome_mail(user)
    recipients        user.email
    from              "[email protected]"
    subject           "Thanks for registering"
    body              :user => user
  end

end

Upvotes: 1

Views: 1947

Answers (1)

mcandre
mcandre

Reputation: 24602

There is a solution posted on Ruby Quiz.

Upvotes: 1

Related Questions