duanhui9840 2019-01-23 05:10
浏览 175

outlook365:电子邮件标记为已读/未读不与使用PHP + Laravel的imap库一起使用

For imap I have used below library with laravel ,

"php-imap/php-imap": "3.0.*",

my code is as below,

$stream = '{' . $email['email_server'] . ":993/imap/ssl}";

$con =  new \PhpImap\Mailbox($stream ."INBOX", $email['email_user'], $email['email_password']);

//to mark an email as read

$con->setFlag([EMAIL_MESSAGE_NO], '\Seen');

//to mark an email as unread

$con->clearFlag([EMAIL_MESSAGE_NO], '\Seen');

It is working with outlook account properly, but for an outlook365 account, it is not working.

Is there any other setting is required or needs to change in my code level?

Please help me to resolve it out. Thank you.

I will appreciate the answer which will be helpful to me.

  • 写回答

0条回答

    报告相同问题?

    悬赏问题

    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
    • ¥15 对于相关问题的求解与代码
    • ¥15 ubuntu子系统密码忘记
    • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
    • ¥15 保护模式-系统加载-段寄存器
    • ¥15 电脑桌面设定一个区域禁止鼠标操作
    • ¥15 求NPF226060磁芯的详细资料