Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
fusiondirectory
fusiondirectory-orchestrator
Commits
b00f3336
Commit
b00f3336
authored
1 month ago
by
Oana-Eliza Alexa
Browse files
Options
Download
Patches
Plain Diff
use utils
parent
2e5f0410
81-redesign-reminders-class
1 merge request
!77
Draft: Resolve "Redesign reminders class"
Pipeline
#32363
failed with stages
in 15 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/tasks/Reminder.php
+8
-12
plugins/tasks/Reminder.php
with
8 additions
and
12 deletions
+8
-12
plugins/tasks/Reminder.php
+
8
−
12
View file @
b00f3336
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets