PHP发送邮件有多少种方法?PHP中的MAIL函数奇怪……MAIL函数,连自己的账号也不用填写...有多少种发邮件的方法?暂时不需要第三方类...

解决方案 »

  1.   

    email本来就不需要"自己的帐号"
    mail函数里你可以加headers
      

  2.   

    mail()函数的使用需要配置。建议使用第三方发送邮件类。
      

  3.   

    还是使用第三方的开源邮件发送类比较好,mail函数需要在header里添加邮箱和密码的信息才能实现发送
      

  4.   


    For the Mail functions to be available, PHP must have access to the sendmail binary on your system during compile time. If you use another mail program, such as qmail or postfix, be sure to use the appropriate sendmail wrappers that come with them. PHP will first look for sendmail in your PATH, and then in the following: /usr/bin:/usr/sbin:/usr/etc:/etc:/usr/ucblib:/usr/lib. It's highly recommended to have sendmail available from your PATH. Also, the user that compiled PHP must have permission to access the sendmail binary.
      

  5.   

    使用phpmailer这个类吧,使用很方便。
      

  6.   

    好,听大家建议。不过PHP写法有多少种?发邮件程序写法?