I wish to create a system where as soon as the player enters his/her email address an OTP is generated by the game that is sent to that email with a 4-digit verification code. Once this OTP is entered the player can log in. I wish this to be the primary method of logging in.
I looked into creating custom emails but I have no idea how to send $otpGeneratedByGame$ to this email.