Failed to connect to mailserver at “localhost” por

2019-07-04 00:11发布

I have a little problem.

When I click send on my contact form I get the following warning:

Warning: mail() [function.mail]:
Failed to connect to mailserver at "localhost" port 25,
verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

I use 64bit Win7, but I have no idea what should I set up to make this work.

1条回答
祖国的老花朵
2楼-- · 2019-07-04 00:40

In your php.ini file you can configure which mailserver to use:

[mail function]
SMTP = mymailserver.example.com

Alternatively you can install a local mailserver as described here: http://www.php.net/manual/en/ref.mail.php#77499

查看更多
登录 后发表回答