-
Notifications
You must be signed in to change notification settings - Fork 5
/
mail-sender.py
66 lines (59 loc) · 1.73 KB
/
mail-sender.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import smtplib
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import sys
banner = """
_______________ _______________
| ___________ | | ___________ |
| | | | | | | |
| | X X | | | | | |
| | - | | | | 0 0 | |
| | ___ | | | | - | |
| | / \ | | | | \___/ | |
| | \___/ | | | | | |
| |___________| | | |___________| |
|_______________| |_______________|
____| |___.............._|________|_
| ********** | | ********** |
| ********** | | ********** |
------------ ------------
[ Coded by : Mr. Bee]
"""
print(banner)
def main(emailf, password, host, port, emailt, subject, message):
s = smtplib.SMTP(host=str(host), port=int(port))
s.starttls()
s.login(str(emailf), str(password))
msg = MIMEMultipart()
msg['From']=str(emailf)
msg['To']=str(emailt)
msg['Subject']=str(subject)
msg.attach(MIMEText(str(message), "plain"))
s.send_message(msg)
s.quit()
del msg
f1 = open("EmailsF.txt","r").read()
f2 = open("Passwords.txt","r").read()
f3 = open("Hosts.txt","r").read()
f4 = open("Ports.txt","r").read()
f5 = open("EmailsT.txt","r").read()
f10 = open("SubText.txt","r").read()
f10 = f10.split()
f6 = f10[0]
f7 = f10[1]
f1 = f1.split()
f2 = f2.split()
f3 = f3.split()
f4 = f4.split()
f5 = f5.split()
c = 0
counter = 0
count = input("Counter: ")
for i in f5:
try:
if int(counter) == int(count):
c += 1
main(f1[int(c)],f2[int(c)],f3[int(c)],f4[int(c)],i,f6,f7)
counter += 1
except:
sys.exit()