Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
R
red-ci-cd
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
red-group-test
red-ci-cd
Commits
34fed395
Commit
34fed395
authored
Dec 06, 2019
by
Gladys Forte
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
batch email admin
parent
6fb23f49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
app/applicationlayer/cms/template/header/serializers.py
app/applicationlayer/cms/template/header/serializers.py
+1
-1
app/helper/email_service/sender.py
app/helper/email_service/sender.py
+8
-0
No files found.
app/applicationlayer/cms/template/header/serializers.py
View file @
34fed395
...
...
@@ -49,7 +49,7 @@ class ChangeRequestTemplatesSerializer(
"department_code"
:
instance
.
requested_to_user
.
department
.
code
,
"department_name"
:
instance
.
requested_to_user
.
department
.
name
}
ret
[
'requested_to_company'
]
=
{
"id"
:
instance
.
requested_to_company
.
id
,
"code"
:
instance
.
requested_to_company
.
code
,
...
...
app/helper/email_service/sender.py
View file @
34fed395
...
...
@@ -58,6 +58,14 @@ def batch_email_users(args):
def
batch_email_admin
(
args
):
filename
=
args
[
0
]
recipient
=
args
[
1
]
body
=
"""
Dear Admin,
Please see the attached file as your reference for the recent bulk users you have uploaded as an Administrator in RMS.
This email and any files transmitted with it are confidential and may contain privileged and confidential information,
including personal information protected by privacy laws.
It is intended only for the use of the individual or entity to whom they are addressed.
"""
email
=
EmailMessage
(
'Resource Management System: Bulk Users!'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment