Skip to content
Discussion options

You must be logged in to vote

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.)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rick020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants