removed unused methods
added mail component
added method sendMail