sample email workflow
added more verbosity to email
optimised email code based on oracle faq