update the smtp sending for new version of library