我最近写了个mail执行后没有出现错误信息执行完毕后邮箱里并没发送邮件,请各位帮我看看
我用的的是iis smtp
<?php
$to = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
'Reply-To:[email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();mail($to, $subject, $message, $headers);
?>
我用的的是iis smtp
<?php
$to = '[email protected]';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
'Reply-To:[email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();mail($to, $subject, $message, $headers);
?>
google: php smtp
要使用的程序是由 php.ini 文件中的配置设置定义的。
php.ini中SMTP ,smtp_port ,sendmail_from都配置好了吗?