Added example hook
Fixed the email script