Skip to content

Commit 033cb0f

Browse files
committed
first version
1 parent 3438a6f commit 033cb0f

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

README.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
pymail
2+
======
3+
4+
This is a simple program to prank your friends.
5+
Just input your gmail username and password, the destination email, subject, text and the amount of mails you want to send.
6+
7+
8+
DISCLAIMER
9+
###############################################################
10+
# THIS PROGRAM IS INTENDED TO BE A PRANKING TOOL #
11+
# #
12+
# DO NOT USE THIS PROGRAM TO SEND SPAM MAILS #
13+
# #
14+
# I AM NOT RESPONSIBLE FOR ANY DAMAGE MADE WITH THIS TOOL #
15+
# (INLUDING BLOCKED GMAIL ACCOUNTS) #
16+
# #
17+
# Have fun ;) #
18+
###############################################################

pysend.py

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
###############################
2+
# file pysend.py #
3+
# author Nanak Tattyrek #
4+
# version 0.1 #
5+
###############################
6+
7+
###############################################################
8+
# This program lets you send any amount of emails #
9+
# to an address of your choice. #
10+
# #
11+
# THIS PROGRAM IS INTENDED TO BE A PRANKING TOOL #
12+
# #
13+
# DO NOT USE THIS PROGRAM TO SEND SPAM MAILS #
14+
# #
15+
# I AM NOT RESPONSIBLE FOR ANY DAMAGE MADE WITH THIS TOOL #
16+
# (INLUDING BLOCKED GMAIL ACCOUNTS) #
17+
# #
18+
# Have fun ;) #
19+
###############################################################
20+
21+
import smtplib
22+
import datetime
23+
import getpass
24+
25+
26+
gmail_user = input('Gmail Username: ')
27+
gmail_pwd = getpass.getpass()
28+
to = input('Who do you want to prank? ')
29+
subject = input('Enter subject: ')
30+
text = input('Enter text: ')
31+
32+
count = int(input("How many mails do you want to send? "))
33+
34+
print("Sending {0} emails from {1}@gmail.com to {2}".format(count, gmail_user, to))
35+
36+
date = datetime.datetime.now().strftime( "%d/%m/%Y %H:%M" )
37+
38+
msg = "From: {0}@gmail.com\nTo: {1}\nSubject: {2}\nDate: {3}\n\n{4}".format( gmail_user, to, subject, date, text )
39+
40+
i = 0
41+
while i < count:
42+
43+
mailServer = smtplib.SMTP("smtp.gmail.com", 587)
44+
mailServer.ehlo()
45+
mailServer.starttls()
46+
mailServer.ehlo()
47+
mailServer.login(gmail_user, gmail_pwd)
48+
mailServer.sendmail(gmail_user, to, msg)
49+
mailServer.close()
50+
51+
i+=1

0 commit comments

Comments
 (0)