Python3 Support

This commit is contained in:
Mohamed ElKalioby
2019-01-23 10:42:50 +03:00
parent b199c86993
commit 6efd643022
11 changed files with 27 additions and 23 deletions

8
mfa/Common.py Normal file
View File

@@ -0,0 +1,8 @@
from django.conf import settings
from django.core.mail import EmailMessage
def send(to,subject,body):
From = "%s <%s>" % (settings.EMAIL_FROM, settings.EMAIL_HOST_USER)
email = EmailMessage(subject,body,From,to)
email.content_subtype = "html"
return email.send(False)