refinery/refinerycms-inquiries — pull request #139 by milkfarm (2014-01-19 03:20:16+00:00)
Title: Avoid smtp server syntax error by replacing brackets with parentheses in from_name

When ActionMailer is configured to use either Gmail or Mailgun as an smtp server, the server returns a syntax error and the email fails to be sent. Replacing the brackets in the `refinery.inquiries.config.from_name` translation with parentheses solves the problem.

Gmail error in production log:

Rendered ~/.rvm/gems/ruby-1.9.3-p194@refinery/gems/refinerycms-inquiries-2.1.0/app/views/refinery/inquiries/inquiry_mailer/confirmation.text.erb (15.5ms)

Sent mail to test@domain.com (227.2ms)
There was an error delivering an inquiry confirmation:
555 5.5.2 Syntax error. q2sm11379636qer.22 - gsmtp

Mailgun error in production log:

Rendered ~/.rvm/gems/ruby-1.9.3-p194@refinery/gems/refinerycms-inquiries-2.1.0/app/views/refinery/inquiries/inquiry_mailer/confirmation.text.erb (1.3ms)

Sent mail to test@domain.com (374.9ms)
There was an error delivering an inquiry confirmation:
501 Syntax error