Set Up Corporate Email (Exchange ActiveSync) - HTC One (M8) for Windows
From the Start screen, swipe left to display the Apps list.
Alternatively, tap All apps (located in the lower-right; may require scrolling to the bottom of the Start screen).
Tap email + accounts.
Tap add an account.
Enter the appropriate information into the following fields then tap sign in.
If prompted, enter the user name and domain then tap sign in.
Account synchronization may take several minutes to complete.
If the user is prompted to set up a password, tap set password and follow the instructions.
If the account settings are not detected, the account can be set up manually.