$res= mail('[email protected]', 'Email verification ','This is my own text');
print $res;
이메일 ID로 메일을 보내려고했습니다. 나는 1 페이지를 가지고있다. 작동하는 것처럼 보이지만 실제로 작동하지 않습니다.부울 값이 true이고 정상적인 것처럼 보일 때 PHP 메일이 전송되지 않는 이유는 무엇입니까?
php.ini 파일 :
내가 어떻게 내 코드에 일어날 것을 추적 할 수 있음을 알고 싶어define_syslog_variables = Off
[mail function]
; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury
SMTP = localhost
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = [email protected]
; XAMPP IMPORTANT NOTE (1): If XAMPP is installed in a base directory with spaces (e.g. c:\program files\xampp-portable) fakemail and mailtodisk do not work correctly.
; XAMPP IMPORTANT NOTE (2): In this case please copy the sendmail or mailtodisk folder in your root folder (e.g. C:\sendmail) and use this for sendmail_path.
; XAMPP: Comment out this if you want to work with fakemail for forwarding to your mailbox (sendmail.exe in the sendmail folder)
sendmail_path = "\"\xampp-portable\sendmail\sendmail.exe\" -t"
; XAMPP: Comment out this if you want to work with mailToDisk, It writes all mails in the \xampp-portable\mailoutput folder
sendmail_path = "\xampp-portable\mailtodisk\mailtodisk.exe"
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = Off
; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log = "\xampp-portable\php\logs\php_mail.log"
[SQL]
. 내 로컬 PHP 서버에서 몇 가지 설정을 할 필요가 있다면 그들에 대해 말해.
xampp portable "관리자 권한으로 실행"을 사용하고 있습니다.
문서에서 : "메일이 배달을 위해 받아 들여 졌기 때문에 메일이 의도 한 목적지에 실제로 도착한다는 것을 의미하지는 않습니다 ._"귀하의 PHP 코드는 더 이상 간단하지 않을 수 있습니다. 그러나 PHP를 넘어서는 메일 에이전트가 어떤 이유로 메시지를 전달하지 못합니다. 또는 목적지의 스팸 폴더에 걸렸을 수도 있습니다. 누가 알아. 그것은이 문제는 메일 전달 문제라면 [serverfault] (http://serverfault.com)에서 더 잘 처리 될 가능성이 있습니다. – Wiseguy
SMTP와 sendmail 경로가 동시에 구성되는 이유는 무엇입니까? –