Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kszkepzes-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KSZK
DevTeam
kszkepzes
old
kszkepzes-backend
Commits
3797c7da
Commit
3797c7da
authored
3 years ago
by
Torma Kristóf
Browse files
Options
Downloads
Patches
Plain Diff
better email memes
parent
6d4b77a4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!10
better email memes
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/email.py
+9
-2
9 additions, 2 deletions
src/common/email.py
with
9 additions
and
2 deletions
src/common/email.py
+
9
−
2
View file @
3797c7da
import
os
from
django.core.mail
import
send_mail
from
django.core.mail
import
send_mail
,
EmailMessage
import
codecs
import
sys
...
...
@@ -22,7 +22,14 @@ def send_out_mail(subject, message, SENDER_EMAIL, receiver_email):
# It is in development
print
(
"
Email sent from:
"
+
str
(
SENDER_EMAIL
)
+
"
to:
"
+
str
(
receiver_email
))
else
:
send_mail
(
subject
,
message
,
SENDER_EMAIL
,
[
receiver_email
,
])
email
=
EmailMessage
(
subject
=
subject
,
body
=
message
,
from_email
=
'
SENDER_EMAIL
'
,
to
=
[
'
receiver_email
'
],
reply_to
=
[
SENDER_EMAIL
],
)
email
.
send
()
def
registration
(
user
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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