Commit b00f3336 authored by Oana-Eliza Alexa's avatar Oana-Eliza Alexa
Browse files

use utils

1 merge request!77Draft: Resolve "Redesign reminders class"
Pipeline #32363 failed with stages
in 15 seconds
Showing with 8 additions and 12 deletions
+8 -12
......@@ -480,18 +480,14 @@ class Reminder implements EndpointInterface
}
$numberOfRecipients = count($mailDetails['mail']['recipients']);
$mail_controller = new \FusionDirectory\Mail\MailLib(
$mailDetails['mail']['setFrom'],
NULL,
$mailDetails['mail']['recipients'],
$mailDetails['mail']['body'],
$mailDetails['mail']['signature'],
$mailDetails['mail']['subject'],
$mailDetails['mail']['receipt'],
NULL
);
$mailSentResult = $mail_controller->sendMail();
$setFrom = $mailDetails['mail']['setFrom'];
$recipients = $mailDetails['mail']['recipients'];
$body = $mailDetails['mail']['body'];
$signature = $mailDetails['mail']['signature'];
$subject = $mailDetails['mail']['subject'];
$receipt = $mailDetails['mail']['receipt'];
$mailSentResult = MailUtils::sendMail($setFrom, NULL, $recipients, $body, $signature, $subject, $receipt, NULL);
// Here we incremented as well the counter of spam to the backend.
$result[] = $this->processMailResponseAndUpdateTasks($mailSentResult, $reminder, $fdTasksConf);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment