|
Posted by Ron Eggler @ work on 06/13/05 16:50
Hi,
I got a strange problem:
I can establish a connection to a pop-server with following line:
$mbox = imap_open ("{".$server."/pop3/notls:110}INBOX", $user, $pass);
then I get several variables back over this connection.
I also get the header of every mail by: $header = imap_headerinfo ($mbox,
$i);
and then I get the sender by $header->senderaddress and I wanna check if it
contains an '@' with:
if (strpos($header->senderaddress,"@"))
I would like to check if the domain exists so I check for a '>' at the end:
if (strpos($header->senderaddress,">"))
{
echo "snip<br>\n";
$URL=substr($URL,0,-1);
}
here is the problem: if I got it like this, the browser gives the error:
Warning: imap_open(): Couldn't open stream
{pop.rideon.ch/pop3/notls:110}INBOX in /srv/www/htdocs/web2/html/php/pop.php
on line 7
Can't connect: POP3 connection broken in command
and if I gonna comment out the line '$URL=substr($URL,0,-1);' in the if() it
works great. why the hell?????
Thank you!
Navigation:
[Reply to this message]
|