如何为PHP电子邮件添加标题?

如何为PHP电子邮件添加标题?,php,email,Php,Email,使用php发送电子邮件时,如何更改已发送电子邮件的标题,如下图所示 我想将“联系人”一词改为其他词。 这是我目前的代码: $msg = "Thank you, " ."$inputUsername". ", for joining "."<a href='http://www.gamingpopulace.com'>Gaming Populace!</a> "."We hope that you enjoy the site and become very active

使用php发送电子邮件时,如何更改已发送电子邮件的标题,如下图所示

我想将“联系人”一词改为其他词。
这是我目前的代码:

$msg = "Thank you, " ."$inputUsername". ", for joining "."<a href='http://www.gamingpopulace.com'>Gaming Populace!</a> "."We hope that you enjoy the site and become very active." ;
          $topic = "Thanks for joining";
          $headers = "From: contact@gamingpopulace.com";
          $headers .= "\r\nReply-To: contact@gamingpopulace.com\r\n";
          $headers .= "Content-Type: text/html; charset=ISO-8859-1";
          $email = preg_replace("([\r\n])", "", $email);
          if (mail($email,$topic,$msg, $headers)) {
                header('Location: ../index ');
          }else {
                header('Location: ../index ');
              }
$msg=“谢谢,”.“$inputUsername”。“我们希望你喜欢这个网站,变得非常活跃。”;
$topic=“感谢您的加入”;
$headers=“From:contact@gamingpopulace.com";
$headers.=“\r\n适用于:contact@gamingpopulace.com\r\n“;
$headers.=“内容类型:text/html;字符集=ISO-8859-1”;
$email=preg_replace(“([\r\n])”,“”,$email);
if(邮件($email、$topic、$msg、$headers)){
标题('Location:../index');
}否则{
标题('Location:../index');
}
是否需要添加其他标题?
谢谢

$headers=“From:Gaming Popular”contact@gamingpopulace.com>\n”;
像这样修改标题

$headers  = "From: Gaming Populace < contact@gamingpopulace.com >\n";