Mailroom is a database and frontend to AWS SES. The first app from Mailroom allows sending bulk messages in multi-mode.
Submodules
email,first_name,last_name
luke@starwars.com,Luke,Skywalker
leia@starwars.com,Leia,Organa
maverick@topgun.org,Pete,Mitchell
-
Add the following environment variables to your .env (or wherever you set them)
AWS_SES_ACCESS_KEY_ID="1234567890ABCDEF1234" AWS_SES_SECRET_ACCESS_KEY="1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ1234" AWS_REGION="us-east-1" MAIL_SENDER="noreply@qux.dev"
AWS REGION
is set to the region where you have verified your domain on AWS SES -
Add "mailroom" to INSTALLED_APPS in your settings file (
settings.py
usually)INSTALLED_APPS = ( ... 'mailroom', ... )
-
Add/update reserved sender names in your settings file (
settings.py
usually)MAILROOM_RESERVED_USERNAMES = ["root", "admin", "ceo",] MAILROOM_SENDER_DOMAIN_NAME = ["quxdev.com", "qux.dev"] # Mailroom uses for the qux_content block for rendering # Create a block with that name if you are using your own # template inheritance MAILROOM_BASE_TEMPLATE = "_blank.html" MAILROOM_CONTENT_SUBTYPE = "plain" MAILROOM_CC = ["postmaster@qux.dev"] MAILROOM_BCC = ["postoffice@qux.dev"]
-
Include the mailroom URLconf in your project urls.py like this:
url(r'mailroom/', include('mailroom.urls'), name='mailroom'),
-
Run
python manage.py migrate mailroom
to create the mailroom models. -
Visit http://127.0.0.1/mailroom/ to start sending bulk messages
-
Start the development server and visit http://127.0.0.1:8000/admin/ to create a mailroom (you'll need the Admin app enabled).