redarrow Posted May 27, 2008 Share Posted May 27, 2008 I need to open the inbox of a msn.com account please help.......... dont no there ip please help cheers......... <?php $mbox=imap_open ("{192.168.1.6:143/pop3}Inbox", "USERNAME", "PASSWORD"); if($mbox) { echo "<h1>Headers in INBOX</h1>\n"; $headers = imap_headers($mbox); if ($headers == false) { echo "Call failed<br />\n"; } else { foreach ($headers as $val) { echo $val . "<br />\n"; } } }else{ echo 'Connection failed'; } ?> Link to comment https://forums.phpfreaks.com/topic/107474-imap_open-who-can-help-please/ Share on other sites More sharing options...
jonsjava Posted May 27, 2008 Share Posted May 27, 2008 <?php /* Not sure this will work, because they use a secure connection to their server */ $username = "your_msn_username"; $passwd = "your_password"; $mailserver = "{Pop3.email.msn.com:995}"; $ms = imap_open($mailserver, $username, $passwd); $mailbox = imap_getmailboxes($ms, $mailserver, "INBOX/%"); while (list($key, $val) = each($mailbox)) { echo $val->name."<br />"; } /* This will print out all the folders. If you need more info, let me know what info you need */ ?> Link to comment https://forums.phpfreaks.com/topic/107474-imap_open-who-can-help-please/#findComment-550917 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.