Skip to content
Permalink
Browse files
Update smtp.py
  • Loading branch information
kokia committed Aug 12, 2019
1 parent d7e80d6 commit 215760d6aec3ac28d4787439181105252a136b54
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1,13 +1,13 @@
import smtplib #calling the smtp library

receivers=["ahmadkoki.trading@yahoo.com","ahmadkoki.jobs@yahoo.com"] #list of recievers
userName = "officialbigidb@gmail.com" #sender's email address
passWord = "12345Iman" #sender's password
userName = input("Enter your Gmail") #sender's email address
passWord = input("Enter your pssword") #sender's password
Emessage = input("Enter your message here") #message displayes to recievers


server = smtplib.SMTP_SSL('smtp.gmail.com', 465) #establishing connecton to the gmail smtp server
server.login(userName, passWord) #giving your log in details
server.login(userName, passWord) #giving your log in details, gotten from https://www.afternerd.com/blog/how-to-send-an-email-using-python-and-smtplib/

for receiver_email in receivers: #iterating through the list of recievers
server.sendmail(userName, receiver_email, Emessage) #sending an email to the reciever

0 comments on commit 215760d

Please sign in to comment.