下好的sendmail放在D盘的sendmail目录下
php.ini配置如下:
SMTP = smtp.sina.com.cn
smtp_port = 25
sendmail_path ="D:\sendmail\sendmail.exe -t"sendmail.ini的配置如下:
smtp_server=smtp.sina.com.cn
smtp_port=25
auth_username=hws3214
auth_password=XXXX
[email protected]网上有的说 php.ini里面的sockets扩展要开启我也开启了执行:
<?php
mail('[email protected]', 'Hello World', 'Hi,world.Prepare for you arrival.We are strving!') ;
?>
也没提示错误
但就是收不到邮件..
为什么啊?要怎么配置才行?