jorgemanrubia / mailgun_rails

Rails Action Mailer adapter for Mailgun
MIT License
210 stars 70 forks source link

Doesn't work with parentheses in the "FROM:" display name #46

Open yas4891 opened 9 years ago

yas4891 commented 9 years ago

Sending an email with the following from email address results in a 400 Bad Request: Christoph (Derp.com) <christoph@derp.com>

I tested the same with mailgun-ruby and it works there, so it's not the mailgun API not supporting it.

peromax commented 9 years ago

+1 Same problem!

techsin commented 8 years ago

found solution?

techsin commented 8 years ago

is there really no way to fix that. I am pretty sure problem lies in rails_message[:from].formatted

techsin commented 8 years ago

ok solved it

if you set it like this it works: default from: "My Company Name <support@company.com>" i did this in application_mailer.rb

got hint from rails guides on actionmailer