asma-qamar/email-automation-script — reverse-engineered prompt
Reverse engineered prompt
Build me a simple Python command line tool that can send the same email to a list of people from a CSV file. I want to use my Gmail account with an App Password, and I don’t want my email password hard coded anywhere, so please load settings from a .env file and include a safe .env.example.
The CSV should have at least name and email columns. The script should read the recipients, prepare a default subject and message, and send through Gmail SMTP. Please add a dry run mode so I can test everything without actually sending emails. Also add retry handling if an email fails, and a small delay between emails so it doesn’t send too fast.
Make it beginner friendly, with clear terminal messages, simple setup instructions, requirements.txt, and a README that explains how to create the CSV, configure Gmail, run a test, and then send real emails safely.
Want more depth? Deep Reverse