#42: Finalized email service. Modified based on code review comments.