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

This commit is contained in:
Claire authored and Tarrien committed 2024-02-16 10:14:19 -05:00
1 parent d7d477047e
commit 53c5096f66
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