mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
SECURITY: BCC active user emails from group SMTP (#19725)
When sending emails out via group SMTP, if we are sending them to non-staged users we want to mask those emails with BCC, just so we don't expose them to anyone we shouldn't. Staged users are ones that have likely only interacted with support via email, and will likely include other people who were CC'd on the original email to the group. Co-authored-by: Martin Brennan <martin@discourse.org>
This commit is contained in:

committed by
GitHub

parent
f4ab3f4543
commit
ab3a032b4b
@ -141,7 +141,8 @@ module Email
|
||||
body: body,
|
||||
charset: 'UTF-8',
|
||||
from: from_value,
|
||||
cc: @opts[:cc]
|
||||
cc: @opts[:cc],
|
||||
bcc: @opts[:bcc]
|
||||
}
|
||||
|
||||
args[:delivery_method_options] = @opts[:delivery_method_options] if @opts[:delivery_method_options]
|
||||
|
Reference in New Issue
Block a user