To find your Player ID (do not confuse it with the Player name), go to game settings (gear icon in the top right corner of the main menu) – Mythical ID and tap copy button near the Player ID in the bottom left corner of the screen.

Then you can paste it in the email or message, or anywhere you enter the text.