diff --git a/auto-mail-sender b/auto-mail-sender new file mode 100644 index 0000000..0c54c32 --- /dev/null +++ b/auto-mail-sender @@ -0,0 +1,16 @@ +import smtplib +from email.message import EmailMessage + +email = EmailMessage() +email['from'] = 'From name' +email['to'] = input("Enter email address seperated by commas: ") +email['Subject'] = 'Type the subject' + +email.set_content("this EMAIL SEND AUTOMATICALLY USING PYTHON") + +with smtplib.SMTP(host='smtp.gmail.com', port=587) as smtp: + smtp.ehlo() + smtp.starttls() + smtp.login('username', 'password') #username is your gmail and password is your gmail password + smtp.send_message(email) + print('Email send successfully!!!!')