Hello again, I made a simple email spammer. It may have errors, but so far its running good.
[ tested with safe sending setting with cloud servers, so far no errors ]
If have any thing to get update or even new ideas, let me know. I'm still in intermediate level in my course. Love to learn more things new way 🙃
Note: - I scraped some list of quotes, and made txt file and put it in the same directory to get what to send in as email. Also can use API if wanted, but in this case used simple quotes from txt file. 😁
[ tested with safe sending setting with cloud servers, so far no errors ]
If have any thing to get update or even new ideas, let me know. I'm still in intermediate level in my course. Love to learn more things new way 🙃
Note: - I scraped some list of quotes, and made txt file and put it in the same directory to get what to send in as email. Also can use API if wanted, but in this case used simple quotes from txt file. 😁
Code
import smtplib
import time
import random
MY_EMAIL = "YOUR EMAIL" # Gmail works best
MY_PASSWORD = "YOUR PASSWORD" # Use generated app password
def send_email(message, subject):
with smtplib.SMTP_SSL("smtp.gmail.com", 465) as connection:
connection.ehlo()
connection.login(MY_EMAIL, MY_PASSWORD)
connection.sendmail(from_addr=MY_EMAIL,
to_addrs="YOUR VICTIM EMAIL", # Enter your victim email
msg=f"Subject:Hey Name, {subject}...\n\n{message}")
def call_me():
with open("quotes.txt") as quotes:
my_quotes = quotes.readlines()
send_quote = random.choice(my_quotes)
send_subject = send_quote[:15]
send_email(message=send_quote, subject=send_subject)
def countdown(t):
while t:
mins = t // 60
secs = t % 60
timer = '{:02d}:{:02d}'.format(mins, secs)
print(timer, end="\r")
time.sleep(1)
t -= 1
print('Lets Try Again!!!')
count = 0
def counter():
count_print = f"[+]___ {str(count)} mail sent!!"
return print(count_print, end='\r')
while True:
time.sleep(60)
try:
call_me()
count += 1
counter()
except Exception:
print(f"Let me take a brake")
time.sleep(3600)
countdown(3600)

