Integrating RoundCubeMail in your Website
To integrate *RoundCubeMail (for auto-login) in your own website, perform these two steps as defined on RoundCube Forum.
Edit your “index.php“..
1. Near line 240, modify the code as shown below:
// not logged in -> show login page
if (empty($USER->ID))
{
rcmail_login($_SESSION["www_user"], $_SESSION["www_pass"], $host);
if ($_task == "login")
header("Location: $RoundCubeDIR");
exit;
}
Here, $_SESSION variables contain value carried forward from your own website.
2. Now, update [...]