It’s possible that my code example uses $admin_email and $blog_title which I declare elsewhere in my code.
You either need to declare them or set them to your own values and see if that works.
You also didn’t change the FROM email
Have you checked your spam filters?
Does your WordPress site currently send emails?
Have you checked your error logs?