Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update method calls to set email headers #1879

Merged
merged 1 commit into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/data_breach.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ def data_breach(report, logged_in_user)
)

if @logged_in_user
set_reply_to_headers(nil, 'Reply-To' => @logged_in_user.email)
set_reply_to_headers('Reply-To' => @logged_in_user.email)
elsif report.contact_email
set_reply_to_headers(nil, 'Reply-To' => report.contact_email)
set_reply_to_headers('Reply-To' => report.contact_email)
end

# Set a header so we can filter in the mailbox
Expand Down
2 changes: 1 addition & 1 deletion lib/volunteer_contact_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def volunteer_message(contact, logged_in_user)
reply_to_address = MailHandler.address_from_name_and_email(
contact.name, contact.email
)
set_reply_to_headers(nil, 'Reply-To' => reply_to_address)
set_reply_to_headers('Reply-To' => reply_to_address)

# Set a header so we can filter in the mailbox
headers['X-WDTK-Contact'] = 'wdtk-volunteer'
Expand Down
Loading