smtplib.SMTPSenderRefused: (550, b'Submission must be authenticated', '[email protected]') python mailer code example
Example: email authentication python
import smtplib
server = smtplib.SMTP_SSL('smtp.gmail.com', 465)
server.login("your username", "your password")
server.sendmail(
"[email protected]",
"[email protected]",
"this message is from python")
server.quit()