Implemented logic to send CC and BCC and did some refactoring; still missing a mechanism to retry sending emails in case of failure