From e88d1873626c7bc082b83b858aa9673b5721a88c Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 27 May 2011 16:21:50 -0700 Subject: [PATCH] Resolve some complete nonfunctionality in SendGrid adapter. --- .../PhabricatorMailImplementationSendGridAdapter.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/applications/metamta/adapter/sendgrid/PhabricatorMailImplementationSendGridAdapter.php b/src/applications/metamta/adapter/sendgrid/PhabricatorMailImplementationSendGridAdapter.php index d19d4927b0..cfbe609010 100644 --- a/src/applications/metamta/adapter/sendgrid/PhabricatorMailImplementationSendGridAdapter.php +++ b/src/applications/metamta/adapter/sendgrid/PhabricatorMailImplementationSendGridAdapter.php @@ -105,15 +105,15 @@ class PhabricatorMailImplementationSendGridAdapter } $params['from'] = idx($this->params, 'from'); - if (idx($this->params['from-name'])) { - $params['fromname'] = idx($this->params, 'fromname'); + if (idx($this->params, 'from-name')) { + $params['fromname'] = $this->params['from-name']; } - if (idx($this->params, 'replyto')) { - $replyto = $this->params['replyto']; + if (idx($this->params, 'reply-to')) { + $replyto = $this->params['reply-to']; // 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());