Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import smtplib
- #Specifying the From and To addresses
- fromaddress = "freakzsec@gmail.com"
- toaddress = " "
- #Gmail Login
- username = "freakzsec"
- password = " "
- #Writing the message which will appear in the mail
- message = """
- """
- #Creating a connection with the Gmail server
- server =smtplib.SMTP('smtp.gmail.com:587')
- server.starttls()
- server.login(username,password)
- #Creating a for loop to send multiple mails
- for i in range (0,10):
- server.sendmail(fromaddress,toaddress,message)
- print "mail sent"
- #closing the server
- server.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement