Add mail headers to avoid auto-replies (#23597)

This commit is contained in:
Claire authored and Tarrien committed 2024-02-28 09:33:49 -05:00
1 parent c19787f3f4
commit bc5676358c
1 file changed
+6
+6
View File
@@ -20,4 +20,10 @@ class ApplicationMailer < ActionMailer::Base
headers['X-Auto-Response-Suppress'] = 'All'
headers['Auto-Submitted'] = 'auto-generated'
end
def set_autoreply_headers!
headers['Precedence'] = 'list'
headers['X-Auto-Response-Suppress'] = 'All'
headers['Auto-Submitted'] = 'auto-generated'
end
end