ApplicationMailer 默认来自标题而不是电子邮件地址?
ApplicationMailer default from title not email address?
default from
使用电子邮件地址,但当收件人收到电子邮件时,我希望标题为 "Live to Challenge" 而不是 "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发送,却显示为"Live to Challenge"?
default from: '"Live to Challenge" <livetochallenge.com@gmail.com>'
class ApplicationMailer < ActionMailer::Base
default from: "Live to Challenge <livetochallenge.com@gmail.com>"
layout 'mailer'
end
default from
使用电子邮件地址,但当收件人收到电子邮件时,我希望标题为 "Live to Challenge" 而不是 "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发送,却显示为"Live to Challenge"?
default from: '"Live to Challenge" <livetochallenge.com@gmail.com>'
class ApplicationMailer < ActionMailer::Base
default from: "Live to Challenge <livetochallenge.com@gmail.com>"
layout 'mailer'
end