本文章來為各位介紹一篇關于zencart在后臺發測試郵件提示:Could not instantiate mail function.問題的解決辦法,具體如下所示。
哎..命苦...這么晚還在處理售后.折騰完上一臺服務器無法下載文件之后,現在接著在給客戶折騰他的zencart為毛不能發送郵件.
一客戶在他的美國服務器上(就是我最近托管的那個機房,速度很不錯)使用系統工具-send mail測試郵件功能是否正常,但是提示:
Could not instantiate mail function.
不管你怎么折騰都會提示這貨,查了半天的apache日志無果,以為是sendmail沒安裝,先安裝
yum install sendmail
service sendmail restart
再興致勃勃的跑到后臺再測試,依然報錯,接著去翻var/log下面的maillog,發現了問題所在,錯誤信息如下
can not chdir(/var/spool/clientmqueue/): Permission denied
沒有權限嘛,直接
chmod -R 777 /var/spool/clientmqueue/
接著再去測試,不報錯,提示
Notice: Email sent to: All Customers (2)
問題解決.
新聞熱點
疑難解答