我已經配置我的php.ini和sendmail設置爲其他人的指示,但我仍然無法通過使用PHP中的mail()函數從本地主機發送任何郵件。PHP本地主機郵件沒有得到使用xampp發送
這些都是我的php.ini [郵件功能]設置
[mail function]
; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury
; SMTP = localhost
; smtp_port = 25
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
;sendmail_path="C:\xampp\mailtodisk\mailtodisk.exe"
and this is my sendmail.ini settings
smtp_server=smtp.gmail.com
; smtp port (normally 25)
smtp_port=587
smtp_ssl=tls
error_logfile=error.log
auth_username= [email protected]
auth_password= examplepassword
我的操作系統是Windows 8。我是新來的PHP或任何服務器端編程。
這將是非常有益的,如果大家能幫助我,也許發送正確的設置等。感謝球員:d :)