Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
d121ff94
authored
Mar 10, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one: send_mail optional sender
parent
b0c990f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
3 deletions
+1
-3
one/tasks.py
+1
-3
No files found.
one/tasks.py
View file @
d121ff94
...
@@ -9,8 +9,6 @@ from django.core.mail import send_mail
...
@@ -9,8 +9,6 @@ from django.core.mail import send_mail
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
class
SendMailTask
(
Task
):
class
SendMailTask
(
Task
):
def
run
(
self
,
to
,
subject
,
msg
):
def
run
(
self
,
to
,
subject
,
msg
,
sender
=
u'noreply@cloud.ik.bme.hu'
):
sender
=
u'noreply@cloud.ik.bme.hu'
send_mail
(
subject
,
msg
,
sender
,
[
to
],
fail_silently
=
False
)
send_mail
(
subject
,
msg
,
sender
,
[
to
],
fail_silently
=
False
)
logger
.
info
(
"[django][one][tasks.py]
%
s->
%
s [
%
s]"
%
(
sender
,
to
,
subject
)
)
logger
.
info
(
"[django][one][tasks.py]
%
s->
%
s [
%
s]"
%
(
sender
,
to
,
subject
)
)
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