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

This commit is contained in:
Claire
2026-09-18 04:37:35 -04:00
committed by Tarrien
parent 222dfdf233
commit ea302f3f16
+6
View File
@@ -22,4 +22,10 @@ class ApplicationMailer < ActionMailer::Base
'X-Auto-Response-Suppress' => 'All'
)
end
def set_autoreply_headers!
headers['Precedence'] = 'list'
headers['X-Auto-Response-Suppress'] = 'All'
headers['Auto-Submitted'] = 'auto-generated'
end
end