1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02:00

Fix an issue where "CC"-only email improperly wiped CC addresses

Summary: Ref T920. See <https://discourse.phabricator-community.org/t/ccd-emails-not-working-with-sendgrid-since-2019-week-1-update/2294>.

Test Plan: Used `bin/mail send-test --cc ...` without `--to`, got email.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T920

Differential Revision: https://secure.phabricator.com/D19970
This commit is contained in:
epriestley 2019-01-14 13:31:42 -08:00
parent 0c0cbb1c09
commit 96d3e73eed

View file

@ -54,7 +54,6 @@ final class PhabricatorMailEmailEngine
// If that also fails, move the "Cc:" line to "To:". // If that also fails, move the "Cc:" line to "To:".
if (!$to_addresses) { if (!$to_addresses) {
$void_address = $this->newVoidEmailAddress(); $void_address = $this->newVoidEmailAddress();
$cc_addresses = $to_addresses;
$to_addresses = array($void_address); $to_addresses = array($void_address);
} }