아무도 도와 줄 수 있습니까? PHP mail()
함수가 붙어있어서 이미 php.ini
과 sendmail.ini
을 설정했습니다. 그냥 함수 mail($to,$subject,$content)
을 사용하고 있는데 작동하지 않았습니다. localhost XAMPP를 사용하고 있습니다. 메일 보내기() PHP xampp yahoo
php.ini
파일 :
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = smtp.mail.yahoo.com
; http://php.net/smtp-port
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = [email protected]
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
; 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 = "C:\xampp\apache\logs\php_mail.log"
당신이 오류를받을 수 있나요? –
'mail()'의 반환 값을 검사하여 전자 메일 배달을 승인했는지 확인하십시오. 'true' 일 경우 메일을 차단하는 스팸 필터 일 가능성이 높습니다.'false'는 아마 서버 설정 일 것입니다. – MrCode
'localhost XAMPP'를 사용합니다. [SMTP 서버] (http://www.pmail.com/overviews/ovw_mercwin.htm)를 설치 했습니까? –