Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1.08 KB

README.md

File metadata and controls

22 lines (17 loc) · 1.08 KB

mailgun-template-migration

License CodeQL Commit Release

Migrate mailgun email templates from one domain to another within the account

Usage:

  • Set required environment variables
  • Execute python script

Environment Variables:

MG_BASE_URL='https://api.mailgun.net/v3'    # Mailgun API base URL
MG_OLD_MAIL_DOMAIN='abc.com'                # Domain name under which template exists
MG_NEW_MAIL_DOMAIN='xyz.com'                # Domain name to which template needs to be copied or moved to
MG_API_KEY='xxxxxxxxxx'                     # Mailgun API Key

Command:

python3 mailgun-template-migration.py [copy | move]