Hello Wojtek,
Thursday, November 10, 2005, 9:33:44 AM, you wrote:
Adis Salcin wrote:
$rcmail_config['smtp_user'] = '%u' . '@domain.com';
I did that above and changed the domain.com with my domain but without success.
$rcmail_config['smtp_user'] is not involved while login(correct me if I'm wrong) , it's only needed while sending email/connecting to your smtp server (in deep short).
You can try my way, by changing the main index.php, all it does:
- check if the @ is given (it's not perfect, but...)
- if not, look for a hostname and then use it (this is example of the
same site for different vhosts).
regards
I was also thinking so about $rcmail_config['smtp_user'] = '%u' . '@domain.com'; but in file archive that is also mentined as working solution. I will try this "hack", only one question how to applay dif to index.php in windows xp is there any software that you know (for doing it easy). I will edit this by hand and TextPad but for larger dif thing by hand can be heavy.
Thnx
I have (i think) applay the right code to index.php but i am getting: Parse error: parse error, unexpected T_ELSE in /home/chatba/public_html/mail/index.php on line 136 It sims one else is more in code... Here is code from line 116 to 143: // try to log in if ($_action=='login' && $_task=='mail') { $host = $_POST['_host'] ? $_POST['_host'] : $CONFIG['default_host'];
if (eregi("@", $_POST['_user'])) $userdn = $_POST['_user']; else $userdn = $_POST['_user'] . '@' . '' . str_replace("mail.", "", $_SERVER['HTTP_HOST']);
// check if client supports cookies if (empty($_COOKIE)) { show_message("cookiesdisabled", 'warning'); } else if (isset($_POST['_user']) && isset($_POST['_pass']) && rcmail_login($_POST['_user'], $_POST['_pass'], $host)) { { // send redirect header("Location: $COMM_PATH"); exit; } else { show_message("loginfailed", 'warning'); $_SESSION['user_id'] = ''; } }
// end session
And in your diff:
$_SERVER['HTTP_HOST']);
I think the "-" need to be "+" if you wonna to add to index.php this code(mybe i am wrong) but i add it manualy.