smtp implementation in C.