2016-12-25 12 views
2

phpで電子メールを送信する場合、下の図のように、送信される電子メールのタイトルを変更するにはどうすればよいですか?PHP電子メールにタイトルを追加するには?

Google Email List

私は何か他のものに言葉「連絡先」を変更したいです。ここ
は私の現在のコードです:

$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: [email protected]"; 
      $headers .= "\r\nReply-To: [email protected]\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 '); 
       } 

は、私は別のヘッダを追加する必要がありますか?
おかげ

答えて

2
$headers = "From: Gaming Populace <[email protected]>\n"; 

この

ようなあなたのヘッダーを変更します。
関連する問題