Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions SENDMAIL.py
Original file line number Diff line number Diff line change
@@ -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 =['[email protected]','[email protected]','[email protected]']
ob.sendmail("[email protected]",listOfAddress,message)
print("Email sended successfully")
ob.quit()
2 changes: 1 addition & 1 deletion contributors.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)