can't get email notification to work correctly