diff --git a/SENDMAIL.py b/SENDMAIL.py new file mode 100644 index 00000000..59e24555 --- /dev/null +++ b/SENDMAIL.py @@ -0,0 +1,16 @@ +import smtplib as s + +ob = s.SMTP("smtp.gmail.com",587) +ob.starttls() +ob.login(user='youremail',password='password') + +subject ="Sending Email using Python" + +body = "Testing Sending email using python script" + +message = "Subject:{}\n\n{}".format(subject,body) +print(message) +listOfAddress =['receiveremail1@mail.com','receiveremail2@mail.com','receiveremail3@mail.com'] +ob.sendmail("senderemail@mail.com",listOfAddress,message) +print("Email sended successfully") +ob.quit() \ No newline at end of file diff --git a/contributors.md b/contributors.md index 3a7c089c..f4321b69 100644 --- a/contributors.md +++ b/contributors.md @@ -45,4 +45,4 @@ * [Siddhant Srivastava](https://github.com/sidsrivastavasks) * [Vijay Thkaur](https://github.com/Tiro-rex) * [Alankar Singh](https://github.com/alankarartist) - +* [Kunal Raut](https://github.com/kunal21raut)