[英]I can not connect to the mail with php script hostgator
我嘗試了很多方法,但是無法在hostgator托管中連接到imap,該怎么辦
這是我的代碼
$mbox = imap_open("{mail.liveslink.com:143/notls/norsh/novalidate-cert}", "adriano@liveslink.com","clecio")or die(imap_last_error())or die("can't connect: ".imap_last_error());
我收到這個錯誤
Warning: imap_open(): Couldn't open stream {mail.liveslink.com:143/notls/norsh/novalidate-cert} in /home3/adriano/public_html/teste/index.php on line 3
無法驗證到IMAP服務器:[AUTHENTICATIONFAILED]驗證失敗。
請幫我
您能嘗試下面的代碼嗎?
<?php
echo 'before imap_open';
$inbox = imap_open("{mail.liveslink.com:143}","adriano@liveslink.com","clecio") or die('Could not connect to mail server');
$num_msg = $imap_num_msg($inbox);
echo $num_msg;
imap_close($inbox);
?>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.