Implemented templated email functionality in worker role