发送电子邮件我试图从本地主机使用PHP发送电子邮件,但未能 这样如何配置XAMPP以从本地主机的PHP
<?php
$to= "[email protected]";
$subject = "this is test";
$messages= "this is message test, congrats, your success"
if(mail($to, $subject, $messages)) {
echo "success guys";
}
else{
echo "failed guys";
};
?>
代码是如何解决这些问题?我正在使用Linux。以及如何配置我的XAMPP在本地主机上发送电子邮件?
看看[这个答案在这里。](http://stackoverflow.com/questions/15965376/how-to-configure-xampp-to-send-mail-from-localhost) –