0
我使用的XAMPP在Windows 7上,但我無法使用PHP無法(使用PHP腳本)
php.ini文件的一部分來發送郵件從XAMPP的Gmail發送郵件是在:
SMTP = smtp.gmail.com
smtp_port = 25
sendmail_from = hima***ivast***@gmail.com
sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"
mail.add_x_header = Off
的sendmail.ini文件部分是爲下:
smtp_server=smtp.gmail.com
smtp_port=25
error_logfile=error.log
debug_logfile=debug.log
auth_username=hima***ivast***@gmail.com
auth_password=************
force_sender=hima***ivast***@gmail.com
請幫我找出錯誤。
所有三個端口都給出相同的結果。 – user3414154
您是否驗證過您可以使用您使用的憑據登錄? –
是的,我可以使用憑據登錄。我的代碼中有一些錯誤嗎? – user3414154