Skip to content

Commit e88d187

Browse files
author
epriestley
committed
Resolve some complete nonfunctionality in SendGrid adapter.
1 parent f076956 commit e88d187

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/applications/metamta/adapter/sendgrid/PhabricatorMailImplementationSendGridAdapter.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@ public function send() {
105105
}
106106

107107
$params['from'] = idx($this->params, 'from');
108-
if (idx($this->params['from-name'])) {
109-
$params['fromname'] = idx($this->params, 'fromname');
108+
if (idx($this->params, 'from-name')) {
109+
$params['fromname'] = $this->params['from-name'];
110110
}
111111

112-
if (idx($this->params, 'replyto')) {
113-
$replyto = $this->params['replyto'];
112+
if (idx($this->params, 'reply-to')) {
113+
$replyto = $this->params['reply-to'];
114114

115115
// Pick off the email part, no support for the name part in this API.
116-
$params['replyto'] = $replyto[0];
116+
$params['replyto'] = $replyto[0]['email'];
117117
}
118118

119119
$headers = idx($this->params, 'headers', array());

0 commit comments

Comments
 (0)