Mercurial > hg > isophonics-drupal-site
comparison core/modules/action/src/Plugin/Action/EmailAction.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
137 else { | 137 else { |
138 $langcode = $this->languageManager->getDefaultLanguage()->getId(); | 138 $langcode = $this->languageManager->getDefaultLanguage()->getId(); |
139 } | 139 } |
140 $params = ['context' => $this->configuration]; | 140 $params = ['context' => $this->configuration]; |
141 | 141 |
142 if ($this->mailManager->mail('system', 'action_send_email', $recipient, $langcode, $params)) { | 142 $message = $this->mailManager->mail('system', 'action_send_email', $recipient, $langcode, $params); |
143 // Error logging is handled by \Drupal\Core\Mail\MailManager::mail(). | |
144 if ($message['result']) { | |
143 $this->logger->notice('Sent email to %recipient', ['%recipient' => $recipient]); | 145 $this->logger->notice('Sent email to %recipient', ['%recipient' => $recipient]); |
144 } | |
145 else { | |
146 $this->logger->error('Unable to send email to %recipient', ['%recipient' => $recipient]); | |
147 } | 146 } |
148 } | 147 } |
149 | 148 |
150 /** | 149 /** |
151 * {@inheritdoc} | 150 * {@inheritdoc} |