added email generator, added actual sending method with error handling