How to get IMEI number on your HTC One M8

Or most HTC Android phones.

Two ways

In dialer you enter:

*#06#

And get a popup with the IMEI of the phone.

Or:

Under Settings > About > Phone identity, you’ll see a screen with basic phone info.