fixed mail sending on *nix