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
dcec192d
Commit
dcec192d
authored
1 month ago
by
Oana-Eliza Alexa
Browse files
Options
Download
Patches
Plain Diff
fix indent
parent
afcb6b5f
81-redesign-reminders-class
1 merge request
!77
Draft: Resolve "Redesign reminders class"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
library/MailUtils.php
+26
-26
library/MailUtils.php
with
26 additions
and
26 deletions
+26
-26
library/MailUtils.php
+
26
−
26
View file @
dcec192d
...
...
@@ -2,33 +2,33 @@
class
MailUtils
{
private
function
__construct
()
{
}
private
function
__construct
()
{
}
public
static
function
sendMail
(
$setFrom
,
$setBCC
,
$recipients
,
$body
,
$signature
,
$subject
,
$receipt
,
$attachments
)
{
$mail_controller
=
new
\
FusionDirectory\Mail\MailLib
(
$setFrom
,
$setBCC
,
$recipients
,
$body
,
$signature
,
$subject
,
$receipt
,
$attachments
);
public
static
function
sendMail
(
$setFrom
,
$setBCC
,
$recipients
,
$body
,
$signature
,
$subject
,
$receipt
,
$attachments
)
{
$mail_controller
=
new
\
FusionDirectory\Mail\MailLib
(
$setFrom
,
$setBCC
,
$recipients
,
$body
,
$signature
,
$subject
,
$receipt
,
$attachments
);
return
$mail_controller
->
sendMail
();
}
return
$mail_controller
->
sendMail
();
}
/**
* @return array
* Note : A simple retrieval methods of the mail backend configuration set in FusionDirectory
*/
public
static
function
getMailObjectConfiguration
(
TaskGateway
$gateway
):
array
{
return
$gateway
->
getLdapTasks
(
"(objectClass=fdTasksConf)"
,
[
"fdTasksConfLastExecTime"
,
"fdTasksConfIntervalEmails"
,
"fdTasksConfMaxEmails"
]
);
}
/**
* @return array
* Note : A simple retrieval methods of the mail backend configuration set in FusionDirectory
*/
public
static
function
getMailObjectConfiguration
(
TaskGateway
$gateway
):
array
{
return
$gateway
->
getLdapTasks
(
"(objectClass=fdTasksConf)"
,
[
"fdTasksConfLastExecTime"
,
"fdTasksConfIntervalEmails"
,
"fdTasksConfMaxEmails"
]
);
}
}
\ No newline at end of file
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