The documentation you are viewing is for an older version of this component. Switch to the latest (v5) version.
Install dotkernel/dot-mail by executing the following Composer command:
dotkernel/dot-mail
composer require dotkernel/dot-mail