2012-09-23 5 views
2

Zend를 사용하고 있는데 파일을 업로드하는 페이지를 제출할 때이 오류 [500 Internal Server Error]가 발생합니다. 오류 로그 파일은 아래와 같습니다. 이메일이 내부 서버 오류와 관련이 있습니까? 페이지/스크립트가 메일을 보내려고 시도 localhost:25에서 실행되는 SMTP 서버에 연결을 시도처럼500 Zend의 내부 서버 오류

[23-Sep-2012 18:15:12] PHP Fatal error: Uncaught exception 'Zend_Mail_Transport_Exception' with message 'Unable to send mail. mail() [<a href='function.mail'>function.mail</a>]: Failed to connect to mailserver at &quot;localhost&quot; port 25, verify your &quot;SMTP&quot; and &quot;smtp_port&quot; setting in php.ini or use ini_set()' in C:\Tools\Zend\ZendServer\share\ZendFramework\library\Zend\Mail\Transport\Sendmail.php:137 
Stack trace: 
#0 C:\Tools\Zend\ZendServer\share\ZendFramework\library\Zend\Mail\Transport\Abstract.php(348): Zend_Mail_Transport_Sendmail->_sendMail() 
#1 C:\Tools\Zend\ZendServer\share\ZendFramework\library\Zend\Mail.php(1194): Zend_Mail_Transport_Abstract->send(Object(Zend_Mail)) 
#2 C:\Projects\dcs_new\config_local.php(86): Zend_Mail->send() 
#3 C:\Projects\dcs_new\functions.php(277): smail('[email protected]', 'DCS: Document c...', 'Title: Testing ...', 'From: TAN CHEN ...') 
#4 C:\Projects\dcs_new\functions.php(284): email_users_obj('[email protected]', Array, 'DCS: Document c...', 'Title: Testing ...', 'From: TAN CHEN ...') 
in C:\Tools\Zend\ZendServer\share\ZendFramework\library\Zend\Mail\Transport\Sendmail.php on line 137 
+0

서버의 sendmail, postfix 또는 SMTP 메일 설정을 수행합니까? – GBD

+0

당신은 메일을 보내려 시도하고 잡아야하고 그 실패에 대해 ie와 반응해야합니다. –

+0

어떻게 다시 확인할 수 있습니까? phpinfo에서 확인할 수 있습니까? – redcoder

답변

1

보인다.

기본적으로 구성 문제입니다.

로컬 개발을위한 고비를 극복하려면 환경에서 기본 전송을 Zend_Mail_Transport_File으로 설정할 수 있습니다. application/configs/application.ini에서

:

[development : production] 
resources.mail.transport.type = file 
resources.mail.transport.path = APPLICATION_PATH "/../data/mail" 

data/mail 디렉토리를 만들고 거기에 쓸 수있는 웹 서버 권한을 부여해야합니다.