I am attempting to send an email using the mail() PHP function. I had it working until I attempted to give it a subject of \"User registration\", t
mail()
PHP
I would suggest to use PHP_EOL instead of \r\n or \n as the line break would then be determined by your environment...
$headers = 'MIME-Version: 1.0' . PHP_EOL;
etc.. hoping this might finally solve your problem!