PHP Mail Headers

前端 未结 4 545
情歌与酒
情歌与酒 2021-01-16 00:15

Essentially what I\'m trying to do is attach a file to an email I\'m sending out. Simple enough, right? For some reason or another it does not like the following code (presu

4条回答
  •  余生分开走
    2021-01-16 01:14

    Please please please don't build your own MIME emails. Use PHPMailer or Swiftmailer, which do almost everything for you. You can replace you entire script with about 5 or 6 lines of code.

    And best of all, they'll give you far better error messages/diagnostics than the pathetically stupid mail() function ever will.

提交回复
热议问题