开发者

Mail Sending Failed error when sending email in php

开发者 https://www.devze.com 2023-03-22 21:35 出处:网络
When i send mail php from my server it works开发者_如何学Python fine.But when i placed the code in my client server.it shows mail sending failed.what is the problem.Your PHP server does not configured

When i send mail php from my server it works开发者_如何学Python fine.But when i placed the code in my client server.it shows mail sending failed.what is the problem.


Your PHP server does not configured for mail. Basically mail function uses sendmail on UNIX systems. But for Windows it's remain unconfigured. You need to configure from PHP.ini file. For example:

[mail function]
; For Win32 only.
SMTP = smtp.live.com
smtp_port = 25
username = my mail
password = my pass
0

精彩评论

暂无评论...
验证码 换一张
取 消