我正在使用PHP的邮件函数发送电子邮件。
它的功能正常,但所有的电子邮件客户端都显示空白的发件人字段。
以下是我使用该函数的方式:
mail( 'mail@example.com', 'Example subject', $msg,
implode( '\r\n', array( 'Content-Type: text/html; charset=UTF-8', 'From: test@example.com') ) );
我说过除了当消息到达时From字段为空之外,一切都正常。有什么想法为什么会发生这种情况?