Generate and send a verification code to the user’s email. If the email fails to send, an HTTP 500 error is raised.