Updated email action with better error handling
Updated sample actions