Re: how to read emails with php
| From: | Farzan Dalaee | Date: | Tue, 04 Dec 2012 18:24:56 +0000 |
| Subject: | Re: how to read emails with php | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-319792@lists.php.net to get a copy of this message | ||
Warning: imap_open() [function.imap-open]: Couldn't open stream
mail.mydomain.net:143/pop3INBOX in C:\xampp\htdocs\mail.php on line 6
Warning: imap_check() expects parameter 1 to be resource, boolean
given in C:\xampp\htdocs\mail.php on line 10
Notice: Unknown: Can't open mailbox mail.mydomain.net:143/pop3INBOX:
no such mailbox (errflg=2) in Unknown on line 0
this is my code
$host = 'mail.mydomain.net:143/pop3';
$user = 'x@mydomain.net';
$password = 'myPassword';
$mailbox = "{$host}INBOX";
$mbx = imap_open($mailbox , $user , $password);
$check = imap_check($mbx);
On 12/4/12, Jonathan Sundquist <jsundquist@gmail.com> wrote:
> What does it say when you call imap_errors or imap_last_error?
>
>
> On Tue, Dec 4, 2012 at 10:02 AM, Farzan Dalaee
> <farzan.dalaee@gmail.com>wrote:
>
>> i dont have access to log files on server
>>
>> On Azar 14, 1391, at 5:51 PM, Daniel Brown wrote:
>>
>> > On Tue, Dec 4, 2012 at 8:10 AM, Farzan Dalaee <farzan.dalaee@gmail.com>
>> wrote:
>> >> hi guys
>> >> i want to open an email content ( subject ,body , attachment ) with
>> >> php
>> >> i use imap_php but its wont connect to host
>> >> what should i do?
>> >> thanx
>>
>> >
>> > Start by finding out why it won't connect. Check the logs on the
>> > server if you can, that's always the best place to look first.
>> >
>> > --
>> > </Daniel P. Brown>
>> > Network Infrastructure Manager
>> > http://www.php.net/
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>