Change email password from webmail?

percus

New member
Joined
Feb 19, 2004
Messages
1
Is there a way for the user to change his email account password from webmail or some other web interface?
 
This was would be a nice feature to have.

Better yet, how about a end user cp, where they can change their password, create/change/delete a vacation message, and autologon to their webmail.

Eddie
 
This can all be done with SquirrelMail and I have been slowly working on it in the past just as SquirrelMail as added to DirectAdmin. I just have not had time lately.

The problem is that DA modify's a few things and does stuff a little different then if you just setup the same software by default. The plug-ins to make SquirrelMail do this stuff assume it is a defult clean install. It is not impossible I just did't finish everything I needed to do to get it to work.

I thought I read someone that they were looking into this. I will also take a look tommrow when I have time to see if I can't just get the password issue resolved.
 
domain.com:2222/CMD_CHANGE_EMAIL_PASSWORD

A link could be added to that somewhere in the squirrelmail skin.

John
 
I found a workaround for now.

1. I edited the login.htm file in the themes directory of webmail andd added the following line:

<tr><td align=right class="title" colspan=2>.: <b>
{#lgn_passwd_msg#}</b> :.</td>

2. I added the following to the language file, under the heading Login, in the langs directory:

lgn_passwd_msg = Click <a target="_blank" href="passwd.php">here</a> to change your password

3. Then I created a file called passwd.php and put in the webmail directory. It contained the following:

PHP:
<html>
<META http-equiv="refresh" content="0; URL=http://<? echo $HTTP_HOST ?>:2222/CMD_CHANGE_EMAIL_PASSWORD">
<head>
<title>Changing password...</title>
</head>
</html>

This let's the users change their password without having to send them to a different domain.

Hope this helps someone,
Eddie
 
Ok, now I have a small request.
It would be nice if the user would get a success or fail message after submitting the password change. Instead it just goes right to the DA login page.

Eddie
 
Is it possible to pass on variables?
If possible, I would like it to redirect to the webmail login page I created, and automatically insert the email address and the new password, upon successful password change.

Thanks, Eddie
 
Here is what I did. I uploaded these two files to the webmail directory. Then I call on the change password file by going to http://www.domain.com/webmail/passwd.php.

Does anyone know how I can pass over to the success.php file the email and the new password directly into the blank spaces, preferably in hidden fields?

Thanks, Eddie
 

Attachments

Hello,

Yes, but it would show up in the location bar:

In the post, you're on the right track:
PHP:
<input type=hidden name=redirect value="http://<? echo $HTTP_HOST ?>/webmail/success.php?f_email=<? echo $f_email; ?>&f_pass=<? echo $f_pass; ?>">
Then in the sucess.php:
PHP:
<input type=text size=10 name="f_email" value="<? echo $_GET['f_email']; ?>">
<input type=password size=5 name="f_pass" value="<? echo $_GET['f_pass']; ?>"
So, you've already got it... should work if you have registerglobals on, but this should work with them off..

John
 
Back
Top