imap-open

Using PHP, How to search through Gmail's archived emails

跟風遠走 提交于 2019-12-20 11:14:50
问题 ( First time programming in PHP. Had some help. Need a bit more. ) Goal: Pull the lastContactDate from a given email address from my gmail account. Hoping to answer the question, "When was the last time I contacted [Person]" What I've done so far: Connected to gmail using imap (inbox only) Grabbed the date and time Printed the person's name and timestamp. What I can't do: Scour emails for lastContactDate that have been archived (I'm an inbox=0 guy) Notes: The code is rough, but functional.

imap_open: Can't open stream

主宰稳场 提交于 2019-12-13 18:04:48
问题 I'm trying to use imap_open() for my FatCow email account. Here's my code: $mbox = imap_open("{imap.fatcow.com:143}", "account@domain.com", "password"); Here's what I receive: Warning: imap_open() [function.imap-open]: Couldn't open stream {imap.fatcow.com:143} in /home/alfatcom/public_html/test.php on line 2 Maybe the reason is that FatCow uses STARTTLS? Anyway, what am I doing wrong? 回答1: In my case it was {domain:110/pop3/novalidate-cert}INBOX that helped me in fixing both the CLOSED IMAP

Can't silence imap_open error notices in PHP

落花浮王杯 提交于 2019-12-09 11:22:32
问题 I am using PHP 5.3.5 and I am using $this->marubox=@imap_open($this->server,$this->username,$this->password); The @ sign should silence error reporting but it doesnt and I am sure that the error occurs on this line. I want my application to recognize the problem itself and react and get no NOTICE errors and I can't turn off error reporting for whole PHP because of my company development policy. Without @ i am getting: imap_open() [function.imap-open]: Couldn't open stream {pop3.seznam.cz:110

why is imap not working in PHP?

我的梦境 提交于 2019-12-08 08:01:55
问题 I'm creating a script to connect to a mailbox using IMAP everytime I run it I get this error... Fatal error: Call to undefined function imap_open() in C:\xampp\htdocs\CheckContents\index.php on line 11 does anyone know why?? 回答1: Add imap extension to your php setup by adding following to your php.ini extension=php_imap.dll 来源: https://stackoverflow.com/questions/16277255/why-is-imap-not-working-in-php

why is imap not working in PHP?

房东的猫 提交于 2019-12-07 08:12:29
I'm creating a script to connect to a mailbox using IMAP everytime I run it I get this error... Fatal error: Call to undefined function imap_open() in C:\xampp\htdocs\CheckContents\index.php on line 11 does anyone know why?? Add imap extension to your php setup by adding following to your php.ini extension=php_imap.dll 来源: https://stackoverflow.com/questions/16277255/why-is-imap-not-working-in-php

Using PHP, How to search through Gmail's archived emails

非 Y 不嫁゛ 提交于 2019-12-03 01:20:42
( First time programming in PHP. Had some help. Need a bit more. ) Goal: Pull the lastContactDate from a given email address from my gmail account. Hoping to answer the question, "When was the last time I contacted [Person]" What I've done so far: Connected to gmail using imap (inbox only) Grabbed the date and time Printed the person's name and timestamp. What I can't do: Scour emails for lastContactDate that have been archived (I'm an inbox=0 guy) Notes: The code is rough, but functional. The php should really be separated onto different pages, but this is first attempt. Thanks in advance for