我在 cakephp 电子邮件插件中的数据源配置有问题,当我在本地服务器中测试我的代码时,它很好,但在托管服务器中我有错误消息:
Datasource class Emails.ImapSource could not be found.
那是我的代码:
public $emailTicket = array(
'datasource' => 'Emails.ImapSource',
'server' => 'xxxxx.com',
'connect' => '{xxxxx.com:110/pop3/TLS/novalidate-cert}INBOX',
'username' => 'contact@xxxxx.com',
'password' => 'xxxxx',
'port' => '143',
'ssl' => true,
'encoding' => 'UTF-8',
'error_handler' => 'php',
'auto_mark_as' => array(
'Seen',
// 'Answered',
// 'Flagged',
// 'Deleted',
// 'Draft',
),
);
谢谢你的帮助 !