If you even wondered how you can automatically test your Triggers without setup them up via wp-admin, this guide is for you.
Use below snippet to create an email notification in background, with one Administrator recipient and all the merge tags in the content. The subject is Trigger name.