Jump to content

imap_open who can help please


redarrow

Recommended Posts

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

<?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 */
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.