mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 12:30:56 +01:00
Resolve some complete nonfunctionality in SendGrid adapter.
This commit is contained in:
parent
f076956f32
commit
e88d187362
1 changed files with 5 additions and 5 deletions
|
@ -105,15 +105,15 @@ class PhabricatorMailImplementationSendGridAdapter
|
||||||
}
|
}
|
||||||
|
|
||||||
$params['from'] = idx($this->params, 'from');
|
$params['from'] = idx($this->params, 'from');
|
||||||
if (idx($this->params['from-name'])) {
|
if (idx($this->params, 'from-name')) {
|
||||||
$params['fromname'] = idx($this->params, 'fromname');
|
$params['fromname'] = $this->params['from-name'];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (idx($this->params, 'replyto')) {
|
if (idx($this->params, 'reply-to')) {
|
||||||
$replyto = $this->params['replyto'];
|
$replyto = $this->params['reply-to'];
|
||||||
|
|
||||||
// Pick off the email part, no support for the name part in this API.
|
// Pick off the email part, no support for the name part in this API.
|
||||||
$params['replyto'] = $replyto[0];
|
$params['replyto'] = $replyto[0]['email'];
|
||||||
}
|
}
|
||||||
|
|
||||||
$headers = idx($this->params, 'headers', array());
|
$headers = idx($this->params, 'headers', array());
|
||||||
|
|
Loading…
Reference in a new issue