This Python script automates the process of sending data removal requests to multiple services using a Gmail account. The script sends personalized emails to each service requesting the removal of personal information as specified in their privacy policies, following the guidelines from the book "Extreme Privacy" by Michael Bazzell.
- Automated Email Sending: Sends emails to multiple services using Gmail's SMTP server.
- Personalized Requests: Each email is customized with the service name and your personal information.
- Rate Limiting: Includes a delay between sending emails to avoid exceeding Gmail's sending limits.
- Console Confirmation: Provides real-time console output to confirm each email sent.
- Python 3.x
smtplib
andemail
libraries (install withpip install smtplib email
)
-
Enable IMAP in Gmail:
- Go to Settings -> See all settings -> Forwarding and POP/IMAP.
- Ensure IMAP is enabled.
-
Allow Less Secure Apps (if needed):
- Visit https://myaccount.google.com/lesssecureapps
- Toggle the option to allow less secure apps.
-
Set Up Two-Factor Authentication and Create an App Password:
- Visit https://myaccount.google.com/security
- Enable 2-Step Verification.
- Create an App Password for "Mail" at https://myaccount.google.com/apppasswords
-
Clone the repository:
git clone [https://github.com/yourusername/automated-data-removal-email-sender.git](https://github.com/yourusername/automated-data-removal-email-sender.git) cd automated-data-removal-email-sender
-
Configure Personal Information:
- Open
email_sender.py
and replace placeholders with your information:
full_name = "John Doe" physical_address = "1234 Main St, Anytown, USA" telephone_number = "(555) 123-4567" email_address = "[email protected]" smtp_user = "[email protected]" smtp_password = "your_app_password"
- Open
-
Run the script:
python email_sender.py
- SMTP Configuration: Uses Gmail's SMTP server (
smtp.gmail.com
) with port 587. - Email Sending: Utilizes
smtplib
andemail
libraries. SendsMIMEMultipart
messages. - Personalization: Customizes email body for each service using Python string formatting.
- Rate Limiting: Includes a 60-second delay between emails.
- Console Output: Confirms each email sent in the console.