Junk email generator
A junk email generator! Just what the world needs, right?
Here's a simple script in Python that generates a random junk email:
import random
import string
def generate_junk_email():
# Generate a random username
username = ''.join(random.choices(string.ascii_lowercase + string.digits, k=8))
# Generate a random domain
domain = random.choice(['gmail.com', 'yahoo.com', 'hotmail.com', 'outlook.com', 'aol.com'])
# Generate a random subject
subject = ''.join(random.choices(string.ascii_lowercase + string.digits + ' ', k=20))
# Generate a random message
message = ''.join(random.choices(string.ascii_lowercase + string.digits + ' ', k=100))
# Create the email
email = f"{username}@{domain}\nSubject: {subject}\n\n{message}"
return email
# Generate 10 junk emails
for i in range(10):
print(generate_junk_email())
This script generates a random username, domain, subject, and message, and combines them to create a junk email. You can adjust the length of the username, domain, subject, and message by changing the k
parameter in the random.choices
function.
Please note that this script is for entertainment purposes only and should not be used to spam or harass anyone.