Skip to content
Snippets Groups Projects
Commit 91a16382 authored by Julian Pustkuchen's avatar Julian Pustkuchen
Browse files

Issue #3501964 by anybody: Implement email_bcc

parent 08e2ed3a
No related branches found
No related tags found
1 merge request!3Implemented bcc
Pipeline #404750 passed with warnings
......@@ -229,6 +229,7 @@ class Manager {
'subject' => $subject,
'body' => $body,
];
$params['headers']['Bcc'] = $this->config->get("email_bcc") ?? '';
return $this->mailManager->mail(
'user_registration_reminder',
'user_registration_reminder',
......
......@@ -60,6 +60,7 @@ function user_registration_reminder_mail($key, &$message, $params) {
$message['from'] = \Drupal::config('system.site')->get('mail');
$message['subject'] = $params['subject'];
$message['body'][] = $params['body'];
$message['headers'] = $params['headers'];
break;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment