PMF_Mail Class: is not a valid e-mail address!
Moderator: Thorsten
PMF_Mail Class: is not a valid e-mail address!
Hi there folks!
Trying to install phpMyFAQ 2.5.0-beta but when I try to add a new question I get the following error: "phpMyFAQ user error [256]: PMF_Mail Class: is not a valid e-mail address! in Mail.php on line 281".
Any ideas?
Cheers
Trying to install phpMyFAQ 2.5.0-beta but when I try to add a new question I get the following error: "phpMyFAQ user error [256]: PMF_Mail Class: is not a valid e-mail address! in Mail.php on line 281".
Any ideas?
Cheers
Re: PMF_Mail Class: is not a valid e-mail address!
Hi,
did you entered a correct e-mail address? It works for me on phpMyFAQ pre2.5.0-RC.
bye
Thorsten
did you entered a correct e-mail address? It works for me on phpMyFAQ pre2.5.0-RC.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: PMF_Mail Class: is not a valid e-mail address!
Yes I did enter a valid address. I've tried different addresses with different user-accounts - but without success.
Re: PMF_Mail Class: is not a valid e-mail address!
Hi,
can you please update to the current SVN snapshot and try it again? Thanks for testing!
bye
Thorsten
can you please update to the current SVN snapshot and try it again? Thanks for testing!
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: PMF_Mail Class: is not a valid e-mail address!
Same problem for me with 2.5.2
Is this bug confirmed in this version aswell?
Is this bug confirmed in this version aswell?
Re: PMF_Mail Class: is not a valid e-mail address!
Hi,
no...do you get the same error message?
bye
Thorsten
no...do you get the same error message?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: PMF_Mail Class: is not a valid e-mail address!
Yes, i do.
Maybe i´ll try to reinstall?
But if the problem with "open questions not showing" is confirmed and won´t be solved until 2.5.3, i will wait.
Maybe i´ll try to reinstall?
But if the problem with "open questions not showing" is confirmed and won´t be solved until 2.5.3, i will wait.
Re: PMF_Mail Class: is not a valid e-mail address!
Hi,
you can try the following. Open inc/Mail.php and goto line 912 and remove the following code:
bye
Thorsten
you can try the following. Open inc/Mail.php and goto line 912 and remove the following code:
Code: Select all
// phpMyFAQ has adopted a class to manage Internationalized Domain Names
global $IDN;
if (isset($IDN)) {
$address = $IDN->decode($address);
}
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: PMF_Mail Class: is not a valid e-mail address!
No, still:
phpMyFAQ user error [256]: PMF_Mail Class: is not a valid e-mail address! in Mail.php on line 281
phpMyFAQ user error [256]: PMF_Mail Class: is not a valid e-mail address! in Mail.php on line 281
Re: PMF_Mail Class: is not a valid e-mail address!
Hi,
please remove
some lines above.
bye
Thorsten
please remove
Code: Select all
// Sanity checks
if (empty($address)) {
return false;
}
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: PMF_Mail Class: is not a valid e-mail address!
Still phpMyFAQ user error [256]: PMF_Mail Class: is not a valid e-mail address! in Mail.php on line 281
Re: PMF_Mail Class: is not a valid e-mail address!
Hi,
you can also remove the following in this method:
bye
Thorsten
you can also remove the following in this method:
Code: Select all
if (strpos($address, '\0') !== false) {
return false;
}
// Always sanitize!
// http://www.php-security.org/MOPB/PMOPB-45-2007.html
$unsafe = array ("\r", "\n");
if ($address !== str_replace($unsafe, '', $address)) {
return false;
}
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: PMF_Mail Class: is not a valid e-mail address!
But will this also solve the "open questions"-problem?
If not, i´ll rather wait for the next release!
If not, i´ll rather wait for the next release!

Re: PMF_Mail Class: is not a valid e-mail address!
Hi,
is it fixed now with the removal?
The open question issue is fixed in 2.5.3.
bye
Thorsten
is it fixed now with the removal?
The open question issue is fixed in 2.5.3.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: PMF_Mail Class: is not a valid e-mail address!
Unfortunately, still same problem after removal.