Hi Seth,


I've changed the "$redirect = 'login.php?mailto=' . $url;" to "$redirect .= $url;".



However, I get the 403 Forbidden page:
Forbidden
You don't have permission to access /src/send_to=orawf%40pansar.com.my&body=Approval+Action%3A+%27Approve%27%0D% 0A%0D%0AIf+forwarding+this+document+to+another+person%2C+please+enter+their+ user-id%0D%0Abelow.%0D%0AForward+To%3A+%27%27%0D%0A%0D%0ANote%3A+%27%27%0D%0 A%0D%0A%0D%0A%0D%0ANID%5B222653%2F2093844626%40WFMAIL%5D&subject=Standard+Pu rchase+Order+20074632++for+MYR++1%2C000.00+requires+your+approval.+ on this server.



Also, I've changed the registry value from FileURLHandler to "C:\Program Files\Internet Explorer\iexplore http://my.mail.com/src/mailto.php?emailaddress=%1";



When I click on the mailto link I was given another page to login, saying I does not hv access to the intended page.



Further test revealed that I could open 2 login session (using 2 userids) on a browser. I thought this wasn't the case when I did the testing last time (maybe on 1.2.x). How to "force" one userid on one instance of browser?



Thanks.



Seth Randall writes:


This is dependent on you web browser. All the registry entry does is give
the link to your default web browser. Whether or not you get a new window
is up to the browser. If you know you'll only be using one particular web
browser, you can change this line in the registry:


@="rundll32.exe url.dll,FileProtocolHandler
http://mail.server/squirrelmail/src/mailto.php?emailaddress=%1";


to:

@="<path to your browser>
http://mail.server/squirrelmail/src/mailto.php?emailaddress=%1";



In the mailto.php file, at the bottom it says:

/*
if (sqsession_is_registered('user_is_logged_in')) {
$redirect = 'webmail.php?right_frame=compose.php?';
} else {
$redirect = 'login.php?mailto=';
}
*/
$url = urlencode($url);
/* $redirect .= $url; */
$redirect = 'login.php?mailto=' . $url;


change it to:

if (sqsession_is_registered('user_is_logged_in')) {
$redirect = 'webmail.php?right_frame=compose.php?';
} else {
$redirect = 'login.php?mailto=';
}


$url = urlencode($url);
$redirect .= $url;
session_write_close();
header('Location: ' . $redirect);


--
Seth Randall
IT Support Specialist
Missoula Federal Credit Union
[EMAIL PROTECTED]


                                                                        
                                                                        
                                                                        
****************************************************************************
CAUTION: This e-mail is confidential and may contain privileged information.
If you are not the intended recipient,  you must not  disclose  or  use  the
information.  If you have received this e-mail in error,  please  notify  by
returning the e-mail and delete the document.  Any views expressed  in  this
message are those of the individual sender,  and may not necessarily reflect
the views of the Company.
****************************************************************************
                                                                        


------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ -- squirrelmail-users mailing list List Address: [EMAIL PROTECTED] List Archives: http://sourceforge.net/mailarchive/forum.php?forum_id=2995 List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to