Re: how to read emails with php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 4 December 2012 19:24, Farzan Dalaee <farzan.dalaee@xxxxxxxxx> 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@xxxxxxxxxxxx';
> $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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux