PHPメーラーを動作させようとしています。エラーが表示されていますが、Googleからその情報を見つけることができませんでした。PHP、PHPMailer:PHPMailerが動作するためのサンプルコードを取得できません
$mail = new phpmailer;
$mail->IsSMTP(); // set mailer to use SMTP
$mail->SMTPSecure = "ssl";
$mail->Host = "smtp.gmail.com";
$mail->Port = 465;
$mail->From = "[email protected]";
$mail->FromName = "Mailer";
$mail->AddAddress("[email protected]", "User");
//$mail->AddAddress("[email protected]"); // name is optional
$mail->AddReplyTo("[email protected]", "Information");
$mail->WordWrap = 50; // set word wrap
//$mail->AddAttachment("c:\\temp\\js-bak.sql"); // add attachments
//$mail->AddAttachment("c:/temp/11-10-00.zip");
$mail->IsHTML(true); // set email format to HTML
$mail->Subject = "Here is the subject";
$mail->Body = "This is the message body";
$mail->Send(); // send message
上記のコードは、私が使用しているが、私はそれを実行しようとしたとき、私は私のブラウザで次の得るものです...ここで
Fatal error: Cannot access empty property in /the/full/path/to/phpmailer.inc.php on line 271
は、それが参照していますラインです...
$header[] = sprintf("Content-Transfer-Encoding: %s\n", $this->$Encoding);
誰でも助けていただければ幸いです。ありがとう。
'$ this-> Encoding'をチェックしましたか?私は 'エンコーディング'が変数ではないと思います。 – Ben