输出$head:headMime-Version: 1.0
Content-Type: multipart/mixed; boundary="===957a8c1acda3fc8976317953a00ea909==="This is a multi-part message in MIME format.--===957a8c1acda3fc8976317953a00ea909===
Content-Type: text/plain--===957a8c1acda3fc8976317953a00ea909===
Content-Type: application/octet-stream; name="a.txt"
Content-Transfer-Encoding: BASE64
Content-Disposition: attachment; filename="a.txt"c2Rmc2Rmc2Rmc2Rmc2Q=
--===957a8c1acda3fc8976317953a00ea909===--

解决方案 »

  1.   

    \n 换成了\r\n
    还是不行
    附件打不开,正文不显示
      

  2.   

    我喜欢直接调用smtp服务器的接口
      

  3.   

    我喜欢直接调用smtp服务器的接口不能用SOCKET 发送 ,因为服务器不支持
      

  4.   

    服务器不支持SOCKET 发邮件?
      

  5.   

    \n---><br>
    研究一下phpmailer类吧.的确,这个也不错的。不妨一试。