Re: [PHP] how to read emails with php

2012-12-09 Thread Michael Wallner
On 4 December 2012 19:24, Farzan Dalaee wrote: > Warning: imap_open() [function.imap-open]: Couldn't open stream > mail.mydomain.net:143/pop3INBOX in C:\xampp\htdocs\mail.php on line 6 > > this is my code > > $host = 'mail.mydomain.net:143/pop3'; > $user = 'x...@mydomain.net'; > $password = 'myPas

Re: [PHP] how to read emails with php

2012-12-05 Thread tamouse mailing lists
On Tue, Dec 4, 2012 at 12:24 PM, Farzan Dalaee wrote: > 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

Re: [PHP] how to read emails with php

2012-12-04 Thread Jim Lucas
On 12/04/2012 05:10 AM, Farzan Dalaee 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 As others have suggested, try connecting using telnet from the same server you are running the PHP f

Re: [PHP] how to read emails with php

2012-12-04 Thread farzan.dalaee
I think so, so my code is correct and it should be working,  thanks you all for your time Best Regard Farzan DalaeeJonathan Sundquist wrote:It is very likely that the host you are using is blocking access to that port. Also depending on the host you are going to you may need to enable imap

Re: [PHP] how to read emails with php

2012-12-04 Thread Daniel Brown
On Tue, Dec 4, 2012 at 1:44 PM, Farzan Dalaee wrote: > Same error > I think its need something else for opening service like ssl setting or > somthing like that > Or this host im using block imap or pop3 access Per list rules, please don't top-post. Some things to consider:

Re: [PHP] how to read emails with php

2012-12-04 Thread Jonathan Sundquist
It is very likely that the host you are using is blocking access to that port. Also depending on the host you are going to you may need to enable imap as well. On Tue, Dec 4, 2012 at 12:44 PM, Farzan Dalaee wrote: > Same error > I think its need something else for opening service like ssl settin

Re: [PHP] how to read emails with php

2012-12-04 Thread Farzan Dalaee
Same error I think its need something else for opening service like ssl setting or somthing like that Or this host im using block imap or pop3 access Best Regard Farzan Dalaee On Dec 4, 2012 10:03 PM, "Jonathan Sundquist" wrote: > Try removing the call to the inbox and try getting a list of

Re: [PHP] how to read emails with php

2012-12-04 Thread Jonathan Sundquist
Try removing the call to the inbox and try getting a list of all the folders using imap_listmailbox($host, "*"); On Tue, Dec 4, 2012 at 12:24 PM, Farzan Dalaee wrote: > Warning: imap_open() [function.imap-open]: Couldn't open stream > mail.mydomain.net:143/pop3INBOX in C:\xampp\htdocs\mail.php o

Re: [PHP] how to read emails with php

2012-12-04 Thread Farzan Dalaee
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.ne

Re: [PHP] how to read emails with php

2012-12-04 Thread Jonathan Sundquist
What does it say when you call imap_errors or imap_last_error? On Tue, Dec 4, 2012 at 10:02 AM, Farzan Dalaee 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 > wrote: > >> hi guys > >> i

Re: [PHP] how to read emails with php

2012-12-04 Thread Farzan Dalaee
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 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

Re: [PHP] how to read emails with php

2012-12-04 Thread Daniel Brown
On Tue, Dec 4, 2012 at 8:10 AM, Farzan Dalaee 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 ca