Fixed: typo that prevented email notification from being sent