Skip to content

paliwalvimal/mailgun-template-migration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

Migrate mailgun templates from one domain to another

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages