Using phpmyfaq v 2.6.7 on MS SQL Server.
Can’t reset a users password
a. When a user attempst to reset their password, they're greeted with a blank page.
b. Doing a code trace, the problem is password.php calls a new PMF_mail() object, loaded from:
c. Inc\mail.php
i. Line 260 – I have a database entry for main.AdministrationMail but this errors anyway. Not sure what to do from here
User's can't reset passwords
Moderator: Thorsten
Re: User's can't reset passwords
Hey, I have a similar problem here, but this is related to the fact, that the emails cannot be sent to the recipients because the email address has a double << and >> around the name, like this: <<email@email.com>>
In the file inc\PMF_Mail\Builtin.php I just added the following line at line 66 (commented in the following example) - works for me like a charm:
Hope it also helps you...
Best regards,
Tobias
In the file inc\PMF_Mail\Builtin.php I just added the following line at line 66 (commented in the following example) - works for me like a charm:
Code: Select all
// Prepare the headers for the e-mail
$mailHeaders = '';
foreach ($headers as $key => $value) {
$mailHeaders .= $key.': '.$value."\r\n";
}
// Added by TH to remove the << and >> around the recipient email address
$recipients = str_replace(array('<', '>'),'',$recipients);
// Finished adding code
// Send the e-mail
if (empty($sender)) {
return mail(
$recipients,
$subject,
$body,
$mailHeaders
);
Best regards,
Tobias
Re: User's can't reset passwords
Hi,
works here for me. Please check if the file is named inc/Mail.php otherwise the autoloader will break.
bye
Thorsten
works here for me. Please check if the file is named inc/Mail.php otherwise the autoloader will break.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: User's can't reset passwords
We tried both solutions, and are still not able to reset passwords. Setup information:
Browser: IE8/Firefox 3.6.x
Database: MS SQL 2008
Windows Server 2008
Mail Service: MS Exchange SMTP 2005
Browser: IE8/Firefox 3.6.x
Database: MS SQL 2008
Windows Server 2008
Mail Service: MS Exchange SMTP 2005
Re: User's can't reset passwords
Hi,
do you have a file named Mail.php in the directory inc/ ?
bye
Thorsten
do you have a file named Mail.php in the directory inc/ ?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: User's can't reset passwords
Yes, we do.
Kevin
Kevin
Re: User's can't reset passwords
Hi,
okay, I cannot reproduce this on my test systems... do you have any error log information for me?
bye
Thorsten
okay, I cannot reproduce this on my test systems... do you have any error log information for me?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: User's can't reset passwords
We've switched over to MySQL, and this is working now. Thanks.
Re: User's can't reset passwords
Hi,
thanks for the feedback... so it seems it's a MS SQL related issue. I'll try to investigate that.
bye
Thorsten
thanks for the feedback... so it seems it's a MS SQL related issue. I'll try to investigate that.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist