Send a letter with a temporary password with a length of 10 to 20 characters. Do not make the password readable in any way! Add a space after the password so that common mail agents will select this space when you click on a word.
Allow space to be entered in the password field on your site. Do not try to cut the spaces at the beginning or end of the password automatically!