The documentation you are viewing is for an older version of this component. Switch to the latest (v5) version.
dot-mail is a wrapper on top of laminas-mail