Popping Email using PHP
Moderator: General Moderators
Popping Email using PHP
besides imap_open does anyone know any functions for popping email. some servers wont allow the imap_open to go through with either pop or imap connection. Been searching and not having any luck.
This is what I get
<b>Warning</b>: imap_open(): Couldn't open stream {mail.thedomain.com/pop3:110}INBOX in <b>/home/crontasks/bounce_check.php</b> on line <b>13</b><br />
Could not open Mailbox - try again later!
now the same routine for imap give same error but it works for lets say my personal server.
<b>Warning</b>: imap_open(): Couldn't open stream {mail.thedomain.com/pop3:110}INBOX in <b>/home/crontasks/bounce_check.php</b> on line <b>13</b><br />
Could not open Mailbox - try again later!
now the same routine for imap give same error but it works for lets say my personal server.
let's see some code...
you should have something like this:
you should have something like this:
Code: Select all
$mail = imap_open("{mail.thedomain.com:110/pop3}INBOX", "username", "password");try telnetting too to see if you can get in that way:
if that works, then you could do as first suggested and use fsockopen() in conjunction with fwrite()
Code: Select all
telnet mail.thedomain.com 110
USER username
PASS password
LIST- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
There's one. It might be called PEAR IMAP but there's definitely one cos I've had the dis-pleasure of using itoldtimer wrote:I have used pear mail for sending. I also learning class.phpmailer.php / class.smtp.php and these are great for sending. but did not know pear mail could be used to check email.