Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $host='{mail.example.com/notls/imap4}INBOX'; //Host to connect
- $user='user';
- $pass='password';
- $from='someone@example.com'; //Mail to send from
- $mail=@imap_open($host,$user,$pass) or die("Can't connect: " . imap_last_error());
- //PROXY??
- $mailbox = imap_open("{localhost:143/imap/novalidate-cert}INBOX", "user","pw");
- int imap_uid ( resource $imap_stream , int $msg_number )
- echo imap_body($mail,$number);
- $mails=imap_num_msg($mail);
- echo "$mails mails<p>";
- imap_close($mail);
- ?>
- Open IMAP. If it loads, display it on the screen, then save it to file. If it fails, just print out the file. (Unless, say, a month has passed, in which case post a generic message? Check the file date) (Possibly post all emails from the past seven days? Harder to manage, though)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement