我已經安裝了一個全新的Opencart 2.3.0.2
Inmotionhosting
與所有默認設置,除了郵件設置,我嘗試了許多不同的組合。雖然它顯示"Error: DATA not accepted from server!"
,但它發送郵件成功!SMTP「錯誤:數據不被服務器接受!」 Opencart 2.3上InMotionHosting
託管支持中心說,一切都好,所以它應該是一個編碼問題!
郵件設置:
Mail Protocol: SMTP
Mail Parameters: [email protected]
SMTP Hostname: mail.mywebsite.com
SMTP Username: [email protected]
SMTP Password: ********
SMTP Port: 587
SMTP Timeout: 5
完全錯誤的詳細信息:
Fatal error: Uncaught exception 'Exception' with message 'Error: DATA not accepted from server!' in /home/mywebsite/public_html/mywebsite.com/oc/system/library/mail.php:409
Stack trace:
#0 /home/mywebsite/public_html/mywebsite.com/oc/catalog/model/account/customer.php(81): Mail->send()
#1 [internal function]: ModelAccountCustomer->addCustomer(Array)
#2 /home/mywebsite/public_html/mywebsite.com/oc/system/engine/loader.php(178): call_user_func_array(Array, Array)
#3 [internal function]: Loader->{closure}(Array, Array)
#4 /home/mywebsite/public_html/mywebsite.com/oc/system/engine/proxy.php(25): call_user_func_array(Object(Closure), Array)
#5 /home/mywebsite/public_html/mywebsite.com/oc/catalog/controller/account/register.php(21): Proxy->__call('addCustomer', Array)
#6 /home/mywebsite/public_html/mywebsite.com/oc/catalog/controller/account/register.php(21): Proxy->addCustomer(Array)
#7 [internal function]: ControllerAccountRegister->index()
#8 /home/mywebsite/public_html/mywebsite.com/oc/system/engine/action.php(51): call_user_func_array(Array, Array)
#9 /home/sabour in /home/mywebsite/public_html/mywebsite.com/oc/system/library/mail.php on line 409
任何想法如何擺脫這種錯誤的?
你可以查看你的PHP ini文件經常此參數「的sendmail-T-I」,使用「郵件」的協議,端口25設置 – jimmy8ball