adapt to side-effect-free simplesmtp constructor