I ve got a number of Actionmailer groups that sent out a number of emails.... 我想从全球范围包括从这些铁路机中发送的每封电子邮件的负责人:
此处采用一种手法包括:
class GeneralNotification < ActionMailer::Base
def test_email(emails)
subject "Welcome to my email!"
recipients "somebody@somewhere.com"
from "chad@awesome.com"
headers(
"X-SMTPAPI" => {"category": "Test Category"}
)
end
end
I want that X-SMTPAPI header globally included without modifying every mailer method..
这样做的最佳途径是什么?
感谢!
乍得