default from
适用于电子邮件地址,但当收件人收到电子邮件时,我希望标题为“Live to Challenge”而不是“livetochallenge.com”
class ApplicationMailer < ActionMailer::Base
default from: "<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="6f0306190a1b000c070e03030a01080a410c00022f08020e0603410c0002" rel="noreferrer noopener nofollow">[email protected]</a>" #This Line Needs An Email Address to Work
layout 'mailer'
end
如何Action Mailer发送 [email protected] ,但显示为“Live to Challenge”?
最佳答案
class ApplicationMailer < ActionMailer::Base
default from: "Live to Challenge <<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="9bf7f2edfeeff4f8f3faf7f7fef5fcfeb5f8f4f6dbfcf6faf2f7b5f8f4f6" rel="noreferrer noopener nofollow">[email protected]</a>>"
layout 'mailer'
end
关于ruby-on-rails - ApplicationMailer 默认来自标题而不是电子邮件地址?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36043334/