In light of recent events, I have created this Python script to send emails to a list of 542 elected US officials.
The script sends a unique message to each lawmaker by varying sentence structures and switching out nouns, verbs, adverbs, and adjectives with synonyms. Each email is constructed to roughly follow the template from nomoreracistcops.github.io. Please report bugs to alandgton@gmail.com!
This script only works for gmail accounts.
NOTE: there is a per-minute limit on SMTP messages sent via google's servers. to appease our corporate overlords, i've decreased the speed of our operations.
If you're going to use this tool in one of your projects, I'm hoping that you'll have enough self-respect to give credit where it is due. Please do not monetize this script. Thanks!!
Download the source code
git clone https://github.com/alandgton/activism-mail-bot.git
Temporarily grant mailbot permission to send emails on your behalf
Option 1: Use Docker (RECOMMENDED)
Shoutout to darrylbalderas for setting this up!
Install docker-engine
Run the command: ./exec-docker
activism-mailbot/
or activism-mailbot-master/
directory
cd activism-mailbot/
or cd ~/activism-mailbot/
or cd /path/to/activism-mailbot/
docker build -t activism-mailbot .
docker rm -f activism-mailbot
docker run --name activism-mailbot -d activism-mailbot
docker exec -it $(docker ps -aqf "name=activism-mailbot") /bin/bash
Run application: python send.py
Option 2: Legacy Method
Mac Users: you can double-click the install-osx-python3
file instead
Windows Users: TBD
Mac Users: you may need to install certificates for SSL to work
Run python3 send.py
activism-mail-bot
directorycd activism-mail-bot/
Choose which officials you would like to send emails to
Enter the subject (title) of your emails.
Would you like to write your own email or have mailbot do it for you?
y
.n
.
example.txt
example.txt
Enter your full name
Enter your gmail
Enter your gmail password
recipients.py
and submit a pull requestAllow less secure apps
to OFF.This is a critical time for the rights and freedoms that we cherish as American citizens. Check out this compilation of activism resources and notes (credit: Jemma Kwak)!
Listed below are organizations gladly accepting donations and petitions to sign.