Skip to content
Snippets Groups Projects
Commit 78f2a980 authored by Joseph Olstad's avatar Joseph Olstad Committed by Wayne Eaker
Browse files

Issue #3417343 by joseph.olstad, zengenuity: Lite: Allow sending...

Issue #3417343 by joseph.olstad, zengenuity: Lite: Allow sending back-compatibility email with empty To
parent 34659865
No related branches found
No related tags found
No related merge requests found
......@@ -305,8 +305,10 @@ class SymfonyMailer implements MailInterface, ContainerFactoryPluginInterface {
}
}
$to = $this->parseMailboxes($message['to']);
$email->to(...$to);
if (!empty($message['to'])) {
$to = $this->parseMailboxes($message['to']);
$email->to(...$to);
}
if (!empty($message['headers']['From'])) {
$email->from($message['headers']['From']);
}
......@@ -693,7 +695,7 @@ class SymfonyMailer implements MailInterface, ContainerFactoryPluginInterface {
foreach ($message['headers'] as $header_key => $header_value) {
unset($message['headers'][$header_key]);
$header_key = $this->normalizeHeaderKey($header_key);
$message['headers'][$header_key] = $header_value;
$message['headers'][$header_key] = $header_value ?: NULL;
}
}
}
......
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