2010-04-05 22 views
1

我想发送格式化发件人的电子邮件,如“支持团队[email protected]”。actionmailer格式从

如果交付方法我写from "support team <[email protected]>"from "\"support team\" <[email protected]>"但SMTP服务器说

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

这意味着轨道提出完整的“从”串入括号。我如何解决这个问题,而不monkeypatching?

+1

Rails的是什么版本的?是否有可能使用受https://rails.lighthouseapp.com/projects/8994/tickets/2340/https://rails.lighthouseapp.com/projects/8994/tickets/3078-actionmailer-233-打破显示名称支持从地址使用smtp – mikej 2010-04-05 12:47:08

回答