[mail function] SMTP= localhost ; for Win32 only sendmail_from= [email protected] ; for Win32 only ;sendmail_path=;for unix only, may supply arguments as well (default is 'sendmail -t -i')將sendmail_path前面的;去掉,將在=後加入你的sendmail路徑. 如 /usr/sbin/sendmail -t -i
必需有可用的smtp服务器. w2k就得去掉sendmail_path保留 for win32 only的两项,并作出相应修改.
先谢谢楼上几位大兄的回复,小弟的SMTP服务器已经装了,系统是W2K,php.ini也配置OK了,调用mail()函数发送邮件给本地用户没问题,但发给其他的用户就抛出异常:Warning: mail() [function.mail]: SMTP server response: 550 not local host mnc.com.cn, not a gateway in...
SMTP= localhost ; for Win32 only
sendmail_from= [email protected] ; for Win32 only
;sendmail_path=;for unix only, may supply arguments as well (default is 'sendmail -t -i')將sendmail_path前面的;去掉,將在=後加入你的sendmail路徑.
如 /usr/sbin/sendmail -t -i
如[email protected]
搭个mail先
然后改php.ini
w2k就得去掉sendmail_path保留 for win32 only的两项,并作出相应修改.