Thread: Email handling
View Single Post
  #4 (permalink)  
Old October 10th, 2003, 01:44 PM
richard.york's Avatar
richard.york richard.york is offline
Wrox Author
Points: 5,506, Level: 31
Points: 5,506, Level: 31 Points: 5,506, Level: 31 Points: 5,506, Level: 31
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Camby, IN, USA.
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Ah Shizzle,
I missed a few keypoints on this:

function imap_connect() {

        $mail = array();

        /*
         * for pop3: {www.server.com:110/pop3/notls}INBOX
         * and for imap: {www.server.com:143/notls}INBOX.
         *
        */

        $mailbox_server = "{mail.yourserver.com:110/pop3/notls}INBOX";

        $mail["connection"] = @imap_open($mailbox_server, "mail_user", "mail_password");

            imap_error_message($mail["connection"]);

        return $mail;

    }

You might have noticed this error:
$mail_data["mailbox_server"] was supposed to be $mailbox_server.
I used database output in my original function and forgot to modify that but I'm sure you see what's supposed to be happening there.

: )
Rich

:::::::::::::::::::::::::::::::::
Smiling Souls
http://www.smilingsouls.net
:::::::::::::::::::::::::::::::::