Re: how to read emails with php
| From: | Michael Wallner | Date: | Sun, 09 Dec 2012 19:45:46 +0000 |
| Subject: | Re: how to read emails with php | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-319830@lists.php.net to get a copy of this message | ||
On 4 December 2012 19:24, Farzan Dalaee <farzan.dalaee@gmail.com> 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 = 'myPassword';
> $mailbox = "{$host}INBOX";
^^^^^^^
PHP interprets that as "insert $host in string" and removes the curly braces.
Try
$mailbox = "{mail.mydomain.net:143/pop3}INBOX";
Cheers,
Mike