Jul-12-2020, 02:03 PM
(This post was last modified: Jul-12-2020, 02:04 PM by HarleyQuin.)
Hey,
Okay hmm. I use a module called email.message with smtp to send my emails so i don't think i can offer you any further advice on your current mailing method, sorry! That being said. here is the email module i use maybe you'd consider incorporating that if you don't get an answer back soon.
Okay hmm. I use a module called email.message with smtp to send my emails so i don't think i can offer you any further advice on your current mailing method, sorry! That being said. here is the email module i use maybe you'd consider incorporating that if you don't get an answer back soon.
from email.message import EmailMessage import smtplib EMAIL_ADDRESS = "SENDER_EMAIL" EMAIL_PASSWORD = "EMAIL_PASSWORD" msg = EmailMessage() msg['Subject'] = 'Email Subject' msg['From'] = EMAIL_ADDRESS msg['To'] = "Receiver Email" msg.set_content("BODY OF EMAIL HERE") with smtplib.SMTP_SSL('smtp.gmail.com', 465) as smtp: smtp.login(EMAIL_ADDRESS, EMAIL_PASSWORD) smtp.send_message(msg)