我的 Mailer 类中有以下标题
// domain is equal to current domain with capital letters if any
$from = domain;
$replyto = 'noreply@'.strtolower(domain);
$headers = "From: $from\r\nReply-To: ".$replyto;
$headers .= "\nMIME-Version: 1.0\nContent-Type: text/html; charset=\"utf-8\"\r\n";
但是由于某种原因,当我在邮箱中发送电子邮件时,我会收到一封来自 myusername@myhost.com 的电子邮件,这太糟糕了。我怎样才能将我的站点名称作为发件人?