I have performed this same for forgot password by writing lambda function. But I am not getting verification code in Gmail it shows "Your verification code is {####}.
While I have tried to create an account using fake email and when I try to forgot the password, the mail receives with the verification code.
I am getting verification code in default email but not in recoveryEmail attribute.