Rails ActionMailer - format sender and recipient name/email address

后端 未结 6 1233
耶瑟儿~
耶瑟儿~ 2020-12-04 09:44

Is there a way to specify email AND name for sender and recipient info when using ActionMailer?

Typically you\'d do:

@recipients   = \"#{user.email         


        
6条回答
  •  抹茶落季
    2020-12-04 10:06

    In rails3 I place the following in each environment. i.e. production.rb

    ActionMailer::Base.default :from => "Company Name "
    

    Placing quotations around the company name did not work for me in Rails3.

提交回复
热议问题