From 7d4efabdc02b31acd551aaaf3bbd991473189d26 Mon Sep 17 00:00:00 2001 From: kunal21raut <72223057+kunal21raut@users.noreply.github.com> Date: Fri, 22 Oct 2021 20:23:40 +0530 Subject: [PATCH 1/2] Sending mail using Python Sending Mail Using Python in simple steps --- SENDMAIL.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 SENDMAIL.py 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 From ff927d2c85ddcbb6450a88f6ba7f96f39305f2d5 Mon Sep 17 00:00:00 2001 From: kunal21raut <72223057+kunal21raut@users.noreply.github.com> Date: Fri, 22 Oct 2021 20:30:22 +0530 Subject: [PATCH 2/2] Update contributors.md --- contributors.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)