2012-10-22 20 views
5

私はPHP 5.4とPEAR SMTPライブラリを使用しようとしているが、それを使用したとき、私は次の問題を抱えている:PHP 5.4およびSMTP

> Strict Standards: Non-static method Mail::factory() should not be called statically in C:\xampp\htdocs\forgot.php on line 75 

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\pear\Mail\smtp.php on line 365 

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\pear\Net\SMTP.php on line 450 

Strict Standards: Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\pear\Net\SMTP.php on line 451 

Strict Standards: Non-static method PEAR::raiseError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\pear\Mail\smtp.php on line 369 

Strict Standards: Non-static method PEAR::isError() should not be called statically, assuming $this from incompatible context in C:\xampp\php\pear\Mail\smtp.php on line 249 

は、私の知る限り承知しているとして、何の修正はありませんこれはPEARまたはPEARスクリプトの作成者がそれらを修正するまでです。私は代替のSMTPライブラリの人々が何を使用しているのか、SMTP経由でメールからGmailに電子メールを配信するために何ができるのか疑問に思っています。私は窓を使っています。

ありがとうございます。

+1

このスタックオーバーフローをチェックしてください。 http://stackoverflow.com/questions/7114222/what-is-wrong-with-this-php-script-to-send-mail-using-pear-mail –

+0

このフォーラムの投稿をチェックしてください。 http://forums.phpfreaks.com/topic/255144-pear-mail-problems/ –

+0

ここに@を付けて解決策を含む投稿があります。それはいくつかのphp4の使用があり、これはphp5ではあまりうまくいかず、変更されていないようです。 http://stackoverflow.com/questions/8280829/sending-mail-using-php-and-pear-on-windows –

答えて

1

php mailer libraryをご利用ください。 PHPで電子メールに関連する問題を解決するのに役立ちます。続き

は、ライブラリはzip形式で提供されていますphpmailライブラリのダウンロードリンク http://code.google.com/a/apache-extras.org/p/phpmailer/downloads/list

です。

ジップを解凍してからテストフォルダを探してください。これは、ライブラリの使い方を示します。

また、電子メール通信のため

感謝をGmailに使用するためのlinkを参照することができます!

関連する問題