discourse/lib/email
Martin Brennan f6b62919d2
FIX: Confirm new email not sent for staff if email disabled with "non-staff" option ()
See https://meta.discourse.org/t/email-address-change-confirmation-email-not-sent-but-every-other-notification-emails-are/165358

In short: with disable emails set to non-staff, email address change confirmation emails (those sent to the new address) are not sent for staff or admin members.

This was happening because we were looking up the staff user with the to_address of the email, but the to address was the new email address because we are sending a confirm email change email, and thus the user could not be found. We didn't need to do this anyway because we are passing the user into the Email::Sender class anyway.
2020-10-08 14:18:33 +10:00
..
authentication_results.rb enqueue spam/dmarc failing emails instead of hiding () 2020-01-21 11:12:00 -05:00
build_email_helper.rb DEV: Upgrading Discourse to Zeitwerk () 2019-10-02 14:01:53 +10:00
cleaner.rb FEATURE: Remove attachments and truncate raw field for incoming emails () 2019-10-30 16:54:35 +11:00
message_builder.rb DEV: stop freezing frozen strings 2020-04-30 16:48:53 +10:00
processor.rb FIX: Specific email error for replies to digest emails () 2020-05-14 09:04:58 -05:00
receiver.rb FIX: Specific email error for replies to digest emails () 2020-05-14 09:04:58 -05:00
renderer.rb FIX: during concurrent emails generation renderer should not be reused 2019-10-10 08:50:48 +11:00
sender.rb FIX: Confirm new email not sent for staff if email disabled with "non-staff" option () 2020-10-08 14:18:33 +10:00
styles.rb FEATURE: Nokogumbo () 2020-05-05 13:46:57 +10:00