내가 PHP 5.4 배 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 스크립트의 작성자가 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/ –
여기에 @를 추가하여 해결책이 포함 된 게시물이 있습니다. php5에서는 약간의 php4 사용법이 좋지 않으며 변경되지 않았습니다. http://stackoverflow.com/questions/8280829/sending-mail-using-php-and-pear-on-windows –