[imp] Help on IMP Please

Forexys Support Center support at forexys.com
Mon Nov 8 23:10:56 PST 2004


Hi

I have a smaal modification in _custom/imp_sql_auth.php for use a MySQL
table for get server/port
by the login =>

    $_custom_result = mysql_query("SELECT
                                   mailsrv, protocole, authid
                                   FROM ph_webmail
                                   WHERE domaine = '$User_Domain'",
                                   $_custom_db);

    if ( $_custom_row = mysql_fetch_row($_custom_result) ) {
        $_custom_imp_imapuser = $_custom_user_uid;
        $_custom_imp_pass     = $_custom_user_pass;
        $_custom_imp_server   = $_custom_row[0];
        $_custom_imp_protocol = $_custom_row[1];
        $_custom_imp_typeauth = $_custom_row[2];
                if ($_custom_imp_typeauth == 1) {
                        $User_Id = explode ("@", $_custom_imp_imapuser) ;
                        $_custom_imp_imapuser = $User_Id[0];
                }

That's work's very good but for one of my server, i can't use
test at forexys.com in the login name but ony "test"
i have for this added a champ authid at "1" if i delete the @XXX that's
work, i am connect it's good.

But after, my big probleme are :
$_POST['imapuser'] = $_custom_imp_imapuser;

When $_custom_imp_typeauth = 1 imapuser don't have @XXXX or i thinks for
compose or reply, he use imapuser and when i sent i have in address: From:
test at .SYNTAX-ERROR

Where is the solution ? i don't really know php and i don't see where is the
imap connexion procedure ..

Anyone help me ?
Thanks




More information about the imp mailing list