Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
edx
edx-platform
Commits
e5383f3b
Commit
e5383f3b
authored
Feb 10, 2014
by
Bertrand Marron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use bulk email as is for course email
parent
e738acee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
16 deletions
+1
-16
lms/djangoapps/bulk_email/tasks.py
+1
-16
No files found.
lms/djangoapps/bulk_email/tasks.py
View file @
e5383f3b
...
...
@@ -370,23 +370,8 @@ def _filter_optouts_from_recipients(to_list, course_id):
def
_get_source_address
(
course_id
,
course_title
):
"""
Calculates an email address to be used as the 'from-address' for sent emails.
Makes a unique from name and address for each course, e.g.
"COURSE_TITLE" Course Staff <coursenum-no-reply@courseupdates.edx.org>
"""
course_title_no_quotes
=
re
.
sub
(
r'"'
,
''
,
course_title
)
# For the email address, get the course. Then make sure that it can be used
# in an email address, by substituting a '_' anywhere a non-(ascii, period, or dash)
# character appears.
from_addr
=
u'"{0}" Course Staff <{1}-{2}>'
.
format
(
course_title_no_quotes
,
re
.
sub
(
r"[^\w.-]"
,
'_'
,
course_id
.
course
),
settings
.
BULK_EMAIL_DEFAULT_FROM_EMAIL
)
return
from_addr
return
unicode
(
settings
.
BULK_EMAIL_DEFAULT_FROM_EMAIL
)
def
_send_course_email
(
entry_id
,
email_id
,
to_list
,
global_email_context
,
subtask_status
):
...
...
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