Take the 2-minute tour ×

This is my mailer:

class MyUserMailer < ActionMailer::Base
  default from: "me@mail.com",
          :content_transfer_encoding => "7bit"
  def build_email(user)
    mail(:to => user.email,:subject => "Welcome")

I'm testing with an address containing umlauts: äardvark@mail.com, but I keep receiving the following error, when I try to deliver the email:

'to' parameter is not a valid address. please check documentation

Documentation says that the mailer will use UTF-8 to encode all the fields. How can I make this work?

EDIT: I'm using Rails 3.2.5

share|improve this question
Possible duplicated of stackoverflow.com/questions/1961281/… –  waldyr.ar Oct 25 '12 at 13:45
You do realize that the question you're linking to refers to Rails 2? –  Tempus Oct 25 '12 at 13:49
No I didn't, sorry :( –  waldyr.ar Oct 25 '12 at 13:54
The problem seems to be related to mailgun-rails, and not to ActionMailer. –  Tempus Oct 25 '12 at 14:38
add comment

1 Answer

up vote 0 down vote accepted

Problem was caused by my usage of the mailgun Rails gem. After I switched to using smtp directly, problem went away.

share|improve this answer
add comment

Your Answer


