-
According to the docs it is possible use the test mode in Mailgun by calling.
Is it also possible to enable the test mode settings.py? |
Beta Was this translation helpful? Give feedback.
Answered by
medmunds
Jan 17, 2022
Replies: 1 comment
-
Yes, you can use Anymail's global send defaults settings to provide default attributes for every message sent through Anymail: # settings.py
ANYMAIL = {
...
"MAILGUN_SEND_DEFAULTS": {
"esp_extra": {"o:testmode": "yes"},
},
} (Incidentally, Anymail's Mailgun live integration tests use this exact setting to help ensure they don't accidentally send real messages.) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
rick020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can use Anymail's global send defaults settings to provide default attributes for every message sent through Anymail:
(Incidentally, Anymail's Mailgun live integration tests use this exact setting to help ensure they don't accidentally send real messages.)