Category : imap

I have folders I want move message from INBOX to TRASH, but not working. I try follow code: $client->connect(); //Get all Mailboxes /** @var WebklexIMAPSupportFolderCollection $folders */ $folders = $client->getFolder(‘INBOX’); /** @var WebklexIMAPMessage $detail */ $detail = $folders->messages()->getMessageByUid($uid = $id); // $detail->delete($expunge = true); $message = $detail->move(‘TRASH’); if ($message == true) { dd(‘Message has ben ..

Read more

Im trying to show the emails in one of my email inboxes. Im getting this error whenever I try run it. The login details are fine and I have checked they work 🙂 POP3 connection broken in response My Current Code: $hostname = ‘{mail.myhost.com:995/pop3}’; $username = ‘[email protected]’; $password = ‘mypassword’; $inbox = imap_open($hostname,$username,$password) or die(imap_last_error()); ..

Read more

Unable to get and display gmail inner body or message separately using imap search in php? How do i display gmail inner body or message separately in table tr? This is my code: /* Connecting Gmail server with IMAP */ $connection = imap_open(‘{imap.gmail.com:993/imap/ssl}INBOX’, ‘[email protected]’, ‘[email protected]’) or die(‘Cannot connect to Gmail: ‘ . imap_last_error()); /* Search ..

Read more

I am trying to use a library for IMAP and need to read multiple email account info from controller and parse to config I tried with only one info from database and it does not work connection (info isnt passed) Controller $this->imap->connect( $config[] = array ( ‘host’ =>$this->data[‘mailbox_lists_users’][0][‘Host’], ‘username’ => $this->data[‘mailbox_lists_users’][0][‘Email’], ‘password’ => $this->encryption->decrypt($this->data[‘mailbox_lists_users’][0][‘Password’]) ) ..

Read more