即使我改变了php.in [邮件功能] ;仅适用于Win32。 SMTP = smtp.planetghost.com smtp_port = 25 ;仅适用于Win32。 sendmail_from = info@planetghost.com
<?php
$to = 'xxx123@gmail.com';
$sub = "hai all";
$mess = "this is for check";
$frm = "pacha60@gmail.com";
$head = "From:".$frm;
mail($to,$sub,$mess);
?>
善意解决它
答案 0 :(得分:0)
您的$to
不是字符串。改为:
$to = 'xxx123@gmail.com';