PHP mail() function not sending email

前端 未结 3 1866
忘了有多久
忘了有多久 2021-01-07 10:11

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

3条回答
  •  抹茶落季
    2021-01-07 10:25

    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!

提交回复
热议问题