Sudden PHP Error “Warning: imap_open() [function.imap-open]: Couldn't open stream”

前端 未结 5 1938
忘掉有多难
忘掉有多难 2021-01-20 11:54

Okay, this code \'was\' working perfectly and then I started playing around with it in order to let others connect to their e-mails and as you do ran into a few open stream

5条回答
  •  悲&欢浪女
    2021-01-20 12:23

    Please use the below code to connect successfully,

    $hostname = "{imap.gmail.com:993/imap/ssl/novalidate-cert}";
    
    $mailbox = imap_open($hostname, 'admin@artisancodesmith.com', 'PASSWORD');
    
    if ($mailbox) 
    {
        // do work....
    }
    

提交回复
热议问题