In order to use the two-factor authentication, the latest version of the mail.com Mail App is necessary. You can check the version of your mail.com Mail App by following these steps:
To view the Mail App version, tap the menu-icon in the menu bar.
Tap Info.
The mail.com Mail App version you are using
is displayed under Version.