我已经安装WAMP在Windows 8不能在Windows使用PHP邮件功能发送邮件8
遇到错误:
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() in C:\wamp\www\mail.php on line 9
下面是简单的源代码:
<?php
// The message
$message = "Line 1\r\nLine 2\r\nLine 3";
// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70, "\r\n");
// Send
mail('[email protected]', 'My Subject', $message);
?>
我必须安装哪些软件才能通过Windows 8上的电子邮件发送电子邮件? sendmail,msmtp或ssmtp?
你正在运行的IIS或Apache ...也许这将是有用的,http://www.neatcomponents.com/enable-SMTP-in-Windows-8 – chris85
你运行一个邮件服务器?即时通讯猜测没有 –
@ chris85,我想,Wamp服务器使用apache。没有邮件服务器。 – shibly