Author Topic: Recover ListMail Admin Password  (Read 11591 times)

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Recover ListMail Admin Password
« on: February 03, 2005, 06:59:48 pm »
Your password is stored in your ListMail MySQL database in the "admpw" field of the "lm_config" table.  The value can be viewed with PhpMyAdmin, commonly available from your hosting control panel, or by using a custom PHP script, below:

Copy the following code into a new file, such as "recover_pw.php".  Upload the file to your main ListMail directory and browse to it.

Code: [Select]
<php>0){
list($pw)=mysql_fetch_row($row);
echo "  your password is <b>$pw</b><br>";
} else {
echo "<b>  could not read config!</b><br>";
}


?>
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

lewis.wolk

  • Posts: 11
    • View Profile
Just what I needed
« Reply #1 on: July 07, 2005, 06:48:28 am »
Thanks Dean.
Your a lifesaver :)
Lewis

oops I get the following error.
retrieving password.. your password is

However if I try and login with no password it tells me the password is wrong.

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Recover ListMail Admin Password
« Reply #2 on: July 07, 2005, 05:24:02 pm »
Sorry, this is undocumented... A blank password means the password will be "install".

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

drostlelistmail

  • Posts: 1
    • View Profile
forgotten password to access my listmail
« Reply #3 on: August 02, 2007, 03:54:57 am »
I though I knew my password, but I have either forgotten or something else is going on. When I try to login I either get a blank page or the bad password page. I tried uploading the recover_pw.php but got the following message when browsed...

<?php
// show admin password from ListMail
$listmail_dir = ".";
include($listmail_dir."/config.php");
include($listmail_dir."/admin.php");

$link = mysql_connect($sqlhost, $sqluser, $sqlpass) or die("Can't connect to MySQL");
mysql_selectdb($sqldb) or die("Can't select database, does it exist?");

echo "retrieving password.. ";

$row = mysql_query("select admpw from $ctable where 1");
if(mysql_num_rows($row)>0){
list($pw)=mysql_fetch_row($row);
echo " your password is <b>$pw</b><br>";
} else {
echo "<b> could not read config!</b><br>";
}


?>

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Recover ListMail Admin Password
« Reply #4 on: August 02, 2007, 05:47:17 am »
The PHP code itself should definitely not be displayed when you browse to the php file.  (Could there be a space or something at the end of the filename?)  I suspect this is a temporary web hosting problem.  If it persists please contact your web host to have them look into it.



Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting