Working implemntation of smtp Client