20 minute mail generator
A 20-minute mail generator! That's a clever idea. Here's a simple script to generate a temporary email address that can be used for a short period of time (in this case, 20 minutes):
Note: This script uses a combination of a random email provider and a temporary email address. Please be aware that this is not a secure or reliable method for generating email addresses, and you should not use it for sensitive or important purposes.
Script:
import random
import time
# List of email providers
providers = ["gmail.com", "yahoo.com", "hotmail.com", "outlook.com", "protonmail.com"]
# Function to generate a temporary email address
def generate_temp_email():
provider = random.choice(providers)
username = f"temp_{int(time.time())}_{random.randint(1000, 9999)}"
return f"{username}@{provider}"
# Generate a temporary email address
temp_email = generate_temp_email()
print(f"Generated temporary email: {temp_email}")
# Wait for 20 minutes
time.sleep(1200)
# Print a message after 20 minutes
print("Temporary email address expired!")
How it works:
- The script generates a random email provider from the list of providers.
- It creates a temporary username by combining a timestamp (in seconds) with a random number between 1000 and 9999.
- The script combines the username with the email provider to generate a temporary email address.
- The script waits for 20 minutes using the
time.sleep()
function. - After 20 minutes, the script prints a message indicating that the temporary email address has expired.
Example output:
Generated temporary email: [email protected]
Temporary email address expired!
Please keep in mind that this script is for entertainment purposes only, and you should not use it for sensitive or important purposes.