我正在我的 cpanel webmail/roundcube/squirrelmail 中集成未读邮件的自动回复邮件。请参阅下面的我的代码。
问题是我面临 imap_open 函数无法连接。它的加载无法通过任何错误/异常,但仍在加载。有谁指导一下我。我期待您的回复。还要检查我的代码是否正确。
$emailAddress = '[email protected] /cdn-cgi/l/email-protection'; // Full email address
$emailPassword = 'xxxxxxxx'; // Email password
$domainURL = 'example.com'; // Your websites domain
$useHTTPS = false;
/* BEGIN MESSAGE COUNT CODE */
$inbox = imap_open('{'.$domainURL.':143/notls}INBOX',$emailAddress,$emailPassword) or die('Cannot connect to domain:' . imap_last_error());
$oResult = imap_search($inbox, 'UNSEEN');
if(empty($oResult))
$nMsgCount = 0;
else
$nMsgCount = count($oResult);
imap_close($inbox);
echo('<p>You have '.$nMsgCount.' unread messages.</p>');
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)