Skip to content

Commit

Permalink
Fixed compose page interface
Browse files Browse the repository at this point in the history
  • Loading branch information
makville committed Jan 6, 2020
1 parent b67d067 commit 84fdeb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/MailsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function compose($id = null) {
}
}
}
$recipients = implode(',', array_unique($recipients));
$data['recipients'] = implode(',', array_unique($recipients));
//attachments
$attachments = [];
if (isset($data['attachments'])) {
Expand All @@ -165,7 +165,7 @@ public function compose($id = null) {
$status = 'sent';
//do the actual sending
if (in_array('Mailgun', $this->components()->loaded())) {
$this->Mailgun->sendHTML(\Cake\Core\Configure::read('makville-mailer-admin-mail', 'admin@' . $this->request->host()), $recipients, $data['name'], $data['content'], $attachments);
$this->Mailgun->sendHTML(\Cake\Core\Configure::read('makville-mailer-admin-mail', 'admin@' . $this->request->host()), $data['recipients'], $data['name'], $data['content'], $attachments);
}
} else {
$data['status'] = 'draft';
Expand Down

0 comments on commit 84fdeb1

Please sign in to comment.