default from
使用电子邮件地址,但当收件人收到电子邮件时,我希望标题为“#34;直播挑战”#34;不是" livetochallenge.com"
class ApplicationMailer < ActionMailer::Base
default from: "livetochallenge.com@gmail.com" #This Line Needs An Email Address to Work
layout 'mailer'
end
Action Mailer如何使用livetochallenge.com@gmail.com发送,但显示为&#34;直播挑战&#34;?
答案 0 :(得分:1)
default from: '"Live to Challenge" <livetochallenge.com@gmail.com>'
答案 1 :(得分:1)
class ApplicationMailer < ActionMailer::Base
default from: "Live to Challenge <livetochallenge.com@gmail.com>"
layout 'mailer'
end