Commit 21ffd1d6 authored by spncr's avatar spncr Committed by spncr
Browse files

Issue #3113023 by spncr, nataliajustice, jrockowitz: Make sure mandrill is...

Issue #3113023 by spncr, nataliajustice, jrockowitz: Make sure mandrill is using from mail and name of webform config
parent abdb8e1b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -210,8 +210,8 @@ class MandrillMail implements MailInterface {
      'html' => $message['body'],
      'text' => $plain_text,
      'subject' => $message['subject'],
      'from_email' => isset($message['params']['mandrill']['from_email']) ? $message['params']['mandrill']['from_email'] : $from['email'],
      'from_name' => isset($message['params']['mandrill']['from_name']) ? $message['params']['mandrill']['from_name'] : $from['name'],
      'from_email' => $message['params']['from_mail'] ?? $from['email'],
      'from_name' => $message['params']['from_name'] ?? $from['name'],
      'to' => $to,
      'headers' => $headers,
      'track_opens' => $this->config->get('mandrill_track_opens'),