changed the emailSender api