Use headers
shorthand in mailers (#31956)
This commit is contained in:
parent
6801afa12f
commit
2946a9286b
3 changed files with 26 additions and 18 deletions
|
@ -16,8 +16,10 @@ class ApplicationMailer < ActionMailer::Base
|
|||
end
|
||||
|
||||
def set_autoreply_headers!
|
||||
headers['Precedence'] = 'list'
|
||||
headers['X-Auto-Response-Suppress'] = 'All'
|
||||
headers['Auto-Submitted'] = 'auto-generated'
|
||||
headers(
|
||||
'Auto-Submitted' => 'auto-generated',
|
||||
'Precedence' => 'list',
|
||||
'X-Auto-Response-Suppress' => 'All'
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue