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

This commit is contained in:
Claire authored and Tarrien committed 2023-12-14 13:52:48 -05:00
1 parent b7248485b1
commit 1bd42bb9d2
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