views:

68

answers:

1

Hello everybody.

I want to send emails with formatted sender such as "Support team [email protected]".

If delivery method I wrote from "support team <[email protected]>" and from "\"support team\" <[email protected]>" but smtp server says

#<Net::SMTPSyntaxError: 501 <support team <[email protected]>>: "@" or "." expected after "support"

This means that rails puts full "from" string into braces. How can I fix this without monkeypatching?

+2  A: 
 @from         = "\"support team\" <[email protected]>"

Ref:- http://stackoverflow.com/questions/957422/rails-actionmailer-format-sender-and-recipient-name-email-address

http://jrmehle.com/2009/05/09/setting-email-and-name-with-actionmailer/

OR TRY

From        ["support team <[email protected]>"]
Salil
I have tried all methods but smtp server already raises the error.
SMiX