Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
mail() 函数很糟糕,因为它对标题非常宽容,以至于您几乎不能将它与任何用户输入一起使用,而不会使自己或他人受到垃圾邮件的影响。那么,仍然可以确保其使用安全的最简单替代品是什么?
理想情况下,可以包含在外部文件中的东西。
http://swiftmailer.org/似乎是目前最流行的 PHP OO 解决方案