Dev/attachments

remove side-effect from smtp client constructor for reasier testability