send_mail.py lets you email a meetup group using Handmade Cities branding. https://handmadecities.com/meetups
 
 
Go to file
abnercoimbre f5b20a71de README: Include link to issue #2 2023-09-25 10:52:08 -07:00
LICENSE.txt Add LICENSE.txt 2023-09-22 11:33:40 -07:00
README.md README: Include link to issue #2 2023-09-25 10:52:08 -07:00
app.ini Add empty app.ini 2023-09-20 02:58:56 -07:00
body.html Add a sample body.html 2023-09-20 03:01:22 -07:00
send_mail.py Prettify mailing list dump. 2023-09-25 10:46:22 -07:00

README.md

DISCLAIMER: This project is very much a Work In Progress. It is for meetup hosts pioneering Handmade Meetups. Hosts are expected to be programmers comfortable with command-line programs. You can get help or give feedback in the #meetups channel of the Handmade Network Discord.

send_mail

send_mail lets you email a meetup group using Handmade Cities branding. You can send an invite to your meetup group like so:

> python3 send_mail.py --subject SUBJECT --body BODY

where SUBJECT is the subject of your email and BODY is the file containing its contents. Plain text or HTML is supported. Your email will automatically include the Handmade Cities brand along with unsubscribe links!

Note that you can dump the mailing list of your meetup group so far:

> python3 send_mail.py --dump

This list grows automatically as more people sign up for your city.

app.ini

send_mail requires a companion app.ini file. It has the secret credentials to be able to dump the mailing list and otherwise send real emails.

Below is how the file might look like. (Secret stuff is censored as xxx):

; User Constants - Update as needed
[DEFAULT]
LIVE        = false
TEST_EMAIL  = abner@terminal.click
SENDER_NAME = Abner Coimbre

; Handmade Cities Credentials - DON'T TOUCH
[hmc]
API_URL       = https://api.handmadecities.com/v1/meetups/subscribers
SHARED_SECRET = xxx
CITY          = Seattle

; Postmark App Credentials - NO TOUCHY TOUCHY
[postmark]
SERVER_TOKEN   = xxx
API_URL        = https://api.postmarkapp.com/email/batchWithTemplates
TEMPLATE_ID    = xxx
SENDER_EMAIL   = abner@handmadecities.com
MESSAGE_STREAM = xxx

LIVE is false by default, in which case the script only sends an email to TEST_EMAIL. Set LIVE to true when you're ready to mass-email your group.

Known Issues

send_mail uses the requests module which may or may not be in your system. You'll need to use pip if it's not. See this issue for details.