Skip to content

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

Description

@yas4891

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.

Activity

  1. peromax commented on Jul 22, 2015

    @peromax

    +1 Same problem!

  2. techsin commented on Apr 6, 2016

    @techsin
    Contributor

    found solution?

  3. techsin commented on Apr 6, 2016

    @techsin
    Contributor

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

  4. techsin commented on Apr 6, 2016

    @techsin
    Contributor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions