-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemailsender.py
More file actions
33 lines (23 loc) · 897 Bytes
/
emailsender.py
File metadata and controls
33 lines (23 loc) · 897 Bytes
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
import smtplib
import random
sendemail = input("Enter the email address to send from: ")
subject = "vrovrooovroovrovrovrovrovrovrovro"
reciever_email = input("Enter the email address to send to: ")
server = smtplib.SMTP("smtp.gmail.com", 587)
server.starttls()
server.login(sendemail, "put your app password here")
count = 50
def randomize_string(string):
"""Randomizes the characters in a string."""
char_list = list(string)
random.shuffle(char_list)
return ''.join(char_list)
for i in range(0, count):
subject = randomize_string(subject) + str(count)
if i == 0:
message = "Hi dogmy name is putloolrobinokokokforsure"
else:
message = randomize_string(message) + str(count)
text = f"Subject:{subject}\n\n{message}"
server.sendmail(sendemail, reciever_email, text)
print("EMAIL HAS been sent")