PHP邮件()标题无法正常工作与Postfix
我运行Ubuntu 10.04并安装了一个“卫星”Postfix的LAMP堆栈(用作我的ISP的SMTP中继)。 在php.ini中,我使用-t -i参数将sendmail传递保留为默认值: ;sendmail_path = 我发送这样的电子邮件: $headers = 'From: [email protected]' . "\r\n"; $headers .= 'Reply-To: [email protected]' . "\r\n"; $headers .= 'Return-Path: [email protected]'; mail('[email protected]', 'Email title', 'Text of the body.', $headers); 收到的电子邮件中有这个(它应该在标题中): Reply-To: [email protected] Message-Id: <[email protected]> Date: Thu, 27 Oct 2011 23:02:18 +0200 (CEST) 我们如何解决这个问题? 注意:电子邮件在其他安装上可以正常工作:带有qmail的Gentoo或带有smtp的Windows在php.ini中设置为我的isp。 这是完整的标题: Return-Path: <[email protected]> Delivered-To: [email protected] Received: (qmail 28922 invoked […]