2012-10-22 4 views
5

내가 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로 배달하기 위해 할 수있는 일이 무엇인지 궁금합니다. 그게 도움이된다면 창문을 사용하고 있습니다.

감사합니다.

+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

여기에 @를 추가하여 해결책이 포함 된 게시물이 있습니다. php5에서는 약간의 php4 사용법이 좋지 않으며 변경되지 않았습니다. http://stackoverflow.com/questions/8280829/sending-mail-using-php-and-pear-on-windows –

답변

1

PHP 메일러 라이브러리를 사용하십시오. PHP에서 이메일 관련 문제를 해결하는 데 도움이됩니다. 다음

우편 형식의 라이브러리를 사용할 수있는 phpmail 라이브러리 http://code.google.com/a/apache-extras.org/p/phpmailer/downloads/list

의 다운로드 링크입니다.

우편 번호를 추출한 후 테스트 폴더를 검색하십시오. 이것은 라이브러리 사용 방법을 보여줍니다.

또한 이메일 통신을 위해

감사를 Gmail을 사용하기위한 link를 참조 할 수 있습니다!