Send email with line breaks using mail() in php

后端 未结 5 2041
猫巷女王i
猫巷女王i 2020-12-06 10:42

I am trying to send email using mail() in php. I need the message to be formatted or at least allow line breaks.

$mail = mail(WEBMASTER_EMAIL, $subject, $me         


        
5条回答
  •  一生所求
    2020-12-06 11:40

    you should set the content type of the mail (read: tell php you're sending a html e-mail) http://php.net/manual/en/function.mail.php

    it's all explained in Example #5 Sending HTML email.

提交回复
热议问题