wp_mail () broke my code

with and without wp_mail ()

I'm not sure why, as it has never happened before, but this time wp_mail () actually caused a problem on one of my pages. I am also not sure what causes it. Any idea how it could have happened?