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.
我正在将一些站点从完全托管的 cPanel VPS 转移到一个基本上什么都没有的更便宜的 VPS(运行 ubuntu 12.04)。
我通过该mail()函数发送电子邮件的 PHP 脚本。
mail()
我宁愿避免在 VPS 上安装任何邮件服务器的东西。我愿意接受付费邮件服务或其他方法。我什至不确定这会被称为什么,所以很难找到解决方案。
您可以使用 PHPMailer 或 SwiftMailer 使用经过身份验证的 SMTP 服务器(如 Gmail)发送电子邮件。
您可以使用免费的 smtp 电子邮件发送类(例如phpmailer)使用其他一些 smtp 提供商从您的服务器发送电子邮件。
Mandril是网络上最便宜的 SMTP 提供商之一。他们允许每月免费发送 12000 封电子邮件。