fixed a compile error of rebar,solved some re:gsub(match) to make basic smtp server/client working,added a new sendmail/7 funciton