aboutsummaryrefslogtreecommitdiff
path: root/users/mail_send.py
diff options
context:
space:
mode:
authorBobby <[email protected]>2023-05-28 00:41:28 -0400
committerBobby <[email protected]>2023-05-28 00:41:28 -0400
commit1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c (patch)
tree38d17386300c1355418d5bed274f65045c8223ca /users/mail_send.py
parentac5057a31021cf0c72fa9ad02d238fd0184f508e (diff)
downloadthatcomputerscientist-1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c.tar.xz
thatcomputerscientist-1bb0aa7433ec5f9d1bc6252204c8d6e8a682396c.zip
Post show view count now, Django session uses redis cache
Diffstat (limited to 'users/mail_send.py')
-rw-r--r--users/mail_send.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/users/mail_send.py b/users/mail_send.py
index 742f84f5..be167eb1 100644
--- a/users/mail_send.py
+++ b/users/mail_send.py
@@ -1,10 +1,12 @@
# python script for sending SMTP configuration with Oracle Cloud Infrastructure Email Delivery
-import smtplib
import email.utils
-from email.message import EmailMessage
+import smtplib
import ssl
+from email.message import EmailMessage
+
from django.conf import settings
+
def send_email(sender, sender_name, recipient, subject, body_html, body_text):
# Replace [email protected] with your "From" address.
# This address must be verified.