1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-15 18:10:53 +01:00

Explicitly quote "From" name part when submitting mail to the Mailgun API

Summary:
We are submitting `epriestley (Evan Priestley) <noreply@meta.phacility.com>`, but should be submitting `"epriestley (Evan Priestley)" <noreply@meta.phacility.com>`.

Add the missing quotes.

Test Plan: Locally, this makes the API calls work against the Mailgun sandbox domain.

Reviewers: chad, amckinley

Reviewed By: chad, amckinley

Differential Revision: https://secure.phabricator.com/D17831
This commit is contained in:
epriestley 2017-05-04 17:00:02 -07:00
parent 53bc57ecef
commit 733ae2a2e9

View file

@ -86,7 +86,7 @@ final class PhabricatorMailImplementationMailgunAdapter
$from = idx($this->params, 'from'); $from = idx($this->params, 'from');
if (idx($this->params, 'from-name')) { if (idx($this->params, 'from-name')) {
$params['from'] = "{$this->params['from-name']} <{$from}>"; $params['from'] = "\"{$this->params['from-name']}\" <{$from}>";
} else { } else {
$params['from'] = $from; $params['from'] = $from;
} }