开发者

php mail localhost

I keep getting this error:

 Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set

I'm using a windows machine and php mail settings are:

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25

;For Win32 only.
 ;http://php.net/sendmail-from

send开发者_运维百科mail_from = sales@megadirectory.co.uk

Could someone tell me what settings to put in my php.ini file or give me some ini_set settings

Thanks Sam


You should have working SMTP server and set it address and port into php.ini.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜