Skip to content
Snippets Groups Projects
Commit 3797c7da authored by Torma Kristóf's avatar Torma Kristóf :alien:
Browse files

better email memes

parent 6d4b77a4
No related branches found
No related tags found
1 merge request!10better email memes
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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment