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.
这个问题可能是多余的,但我试图弄清楚是否有必要在服务器上安装一个单独的邮件服务器(Sendmail、postfix 等)只是为了使用 php 的 mail() 发送一封电子邮件。
我只是想发送一封电子邮件,不需要接收。
我正在运行一个Ubuntu 12.4带有PHP Version 5.3.10-1ubuntu3.2.
Ubuntu 12.4
PHP Version 5.3.10-1ubuntu3.2
在 Windows 以外的任何平台上,是的,这是必要的。PHP 只是执行 sendmail 或等效的。
Windows 有点不同。PHP 人员可以方便地发送到 Windows 上的 SMTP 服务器。
你可以使用 postfix 的 sendmail。
你可以找到很多帮助你安装它的“howto”。