Skip to content

Commit d16bfdb

Browse files
committed
Switch to Mailgun
1 parent da854af commit d16bfdb

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

config/settings/production.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,17 @@
123123
# https://anymail.readthedocs.io/en/stable/installation/#anymail-settings-reference
124124
# https://anymail.readthedocs.io/en/stable/esps/sendgrid/
125125
EMAIL_BACKEND = "anymail.backends.sendgrid.EmailBackend"
126+
# ANYMAIL = {
127+
# "SENDGRID_API_KEY": env("SENDGRID_API_KEY"),
128+
# "SENDGRID_GENERATE_MESSAGE_ID": env("SENDGRID_GENERATE_MESSAGE_ID"),
129+
# "SENDGRID_MERGE_FIELD_FORMAT": env("SENDGRID_MERGE_FIELD_FORMAT"),
130+
# "SENDGRID_API_URL": env("SENDGRID_API_URL", default="https://api.sendgrid.com/v3/"),
131+
# }
126132
ANYMAIL = {
127-
"SENDGRID_API_KEY": env("SENDGRID_API_KEY"),
128-
"SENDGRID_GENERATE_MESSAGE_ID": env("SENDGRID_GENERATE_MESSAGE_ID"),
129-
"SENDGRID_MERGE_FIELD_FORMAT": env("SENDGRID_MERGE_FIELD_FORMAT"),
130-
"SENDGRID_API_URL": env("SENDGRID_API_URL", default="https://api.sendgrid.com/v3/"),
133+
"MAILGUN_API_KEY": env("MAILGUN_API_KEY"),
134+
"SEND_DEFAULTS": {
135+
"tags": ["couse_api"],
136+
},
131137
}
132138

133139
# Collectfast

0 commit comments

Comments
 (0)