STEP 1

After logging in to your mailbox, go to your Microsoft account

Untitled

STEP 2

Go to the Security tab

Untitled

STEP 3

Make sure you have two-factor authentication enabled

Untitled

STEP 4

Next, go to the Advanced security options section

Untitled

STEP 5

Scroll to the App passwords section and generate a new app password

Untitled