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
f62bb3d3
Commit
f62bb3d3
authored
1 month ago
by
Oana-Eliza Alexa
Browse files
Options
Download
Patches
Plain Diff
use utils
parent
7bf59a63
79-redesign-mail
1 merge request
!75
Draft: Resolve "Redesign Mail"
Pipeline
#32448
passed with stages
in 1 minute and 21 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/tasks/Mail.php
+4
-2
plugins/tasks/Mail.php
with
4 additions
and
2 deletions
+4
-2
plugins/tasks/Mail.php
+
4
−
2
View file @
f62bb3d3
...
...
@@ -4,10 +4,12 @@
class
Mail
implements
EndpointInterface
{
private
TaskGateway
$gateway
;
private
MailUtils
$mailUtils
;
function
__construct
(
TaskGateway
$gateway
)
{
$this
->
gateway
=
$gateway
;
$this
->
mailUtils
=
new
MailUtils
();
}
/**
...
...
@@ -56,7 +58,7 @@ class Mail implements EndpointInterface
public
function
processMailTasks
(
array
$tasks
):
array
{
$result
=
[];
$fdTasksConf
=
M
ailUtils
::
getMailObjectConfiguration
(
$this
->
gateway
);
$fdTasksConf
=
$this
->
m
ailUtils
->
getMailObjectConfiguration
(
$this
->
gateway
);
$maxMailsConfig
=
$this
->
returnMaximumMailToBeSend
(
$fdTasksConf
);
// Increment for anti=spam, starts at 0, each mail task only contain one email, addition if simply + one.
...
...
@@ -97,7 +99,7 @@ class Mail implements EndpointInterface
$attachments
=
NULL
;
}
$mailSentResult
=
M
ailUtils
::
sendMail
(
$setFrom
,
$setBCC
,
$recipients
,
$body
,
$signature
,
$subject
,
$receipt
,
$attachments
);
$mailSentResult
=
$this
->
m
ailUtils
->
sendMail
(
$setFrom
,
$setBCC
,
$recipients
,
$body
,
$signature
,
$subject
,
$receipt
,
$attachments
);
$result
[
$task
[
"dn"
]]
=
$this
->
updateResult
(
$mailSentResult
,
$task
,
$fdTasksConf
);
// Verification anti-spam max mails to be sent and quit loop if matched
...
...
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