Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 sendgrid gem 在 Rails 上发送带有 ruby 的电子邮件。我需要在收件人姓名中添加公司名称。我在用:
mail( :from => "my company name <info@my_company_name.net>", :to => to, :subject => subject )
这没用。
您将以与添加 fromname 完全相同的方式添加收件人姓名。
Name <email@address.com>
您可以查看此问题以获取更多详细信息:
Rails ActionMailer - 格式化发件人和收件人姓名/电子邮件地址