0
電子郵件在本地成功發送。但是生產服務器出現問題,顯示錯誤:未知的gmail配置。CakePHP 3 cPanel服務器中的未知電子郵件配置「gmail」
我的電子郵件地址的配置是這樣的:
'gmail' => [
'className' => 'Smtp',
// The following keys are used in SMTP transports
'host' => 'ssl://smtp.gmail.com',
'port' => 465,
'timeout' => 60,
'username' => '[email protected]',
'password' => 'xxxxxxxxxxxxxxxxxxxxx',
'client' => null,
'tls' => true,
]
什麼問題,如何解決這個問題?
可能是你沒有在服務器上傳適當的app.php文件 – tarikul05