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.
我有一台带有两个 IP 的网络接口的服务器。如何设置一个 IP 用于 SMTP 传输?我正在使用 php 库 Swiftmailer。提前致谢!
尝试这个:
$transport->setLocalDomain('[127.0.0.1]');