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:
parent
53bc57ecef
commit
733ae2a2e9
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ final class PhabricatorMailImplementationMailgunAdapter
|
|||
|
||||
$from = idx($this->params, 'from');
|
||||
if (idx($this->params, 'from-name')) {
|
||||
$params['from'] = "{$this->params['from-name']} <{$from}>";
|
||||
$params['from'] = "\"{$this->params['from-name']}\" <{$from}>";
|
||||
} else {
|
||||
$params['from'] = $from;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue