私は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に電子メールを配信するために何ができるのか疑問に思っています。私は窓を使っています。
ありがとうございます。
このスタックオーバーフローをチェックしてください。 http://stackoverflow.com/questions/7114222/what-is-wrong-with-this-php-script-to-send-mail-using-pear-mail –
このフォーラムの投稿をチェックしてください。 http://forums.phpfreaks.com/topic/255144-pear-mail-problems/ –
ここに@を付けて解決策を含む投稿があります。それはいくつかのphp4の使用があり、これはphp5ではあまりうまくいかず、変更されていないようです。 http://stackoverflow.com/questions/8280829/sending-mail-using-php-and-pear-on-windows –