PMF_Mail Class: is not a valid e-mail address!

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

limen
Posts: 2
Joined: Fri May 15, 2009 7:45 pm

PMF_Mail Class: is not a valid e-mail address!

Post by limen »

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
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: PMF_Mail Class: is not a valid e-mail address!

Post by Thorsten »

Hi,

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
limen
Posts: 2
Joined: Fri May 15, 2009 7:45 pm

Re: PMF_Mail Class: is not a valid e-mail address!

Post by limen »

Yes I did enter a valid address. I've tried different addresses with different user-accounts - but without success.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: PMF_Mail Class: is not a valid e-mail address!

Post by Thorsten »

Hi,

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
epicflupe

Re: PMF_Mail Class: is not a valid e-mail address!

Post by epicflupe »

Same problem for me with 2.5.2

Is this bug confirmed in this version aswell?
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: PMF_Mail Class: is not a valid e-mail address!

Post by Thorsten »

Hi,

no...do you get the same error message?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
epicflupe

Re: PMF_Mail Class: is not a valid e-mail address!

Post by epicflupe »

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.
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: PMF_Mail Class: is not a valid e-mail address!

Post by Thorsten »

Hi,

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);
        }
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
epicflupe

Re: PMF_Mail Class: is not a valid e-mail address!

Post by epicflupe »

No, still:

phpMyFAQ user error [256]: PMF_Mail Class: is not a valid e-mail address! in Mail.php on line 281
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: PMF_Mail Class: is not a valid e-mail address!

Post by Thorsten »

Hi,

please remove

Code: Select all

        // Sanity checks
        if (empty($address)) {
            return false;
        }
some lines above.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
epicflupe

Re: PMF_Mail Class: is not a valid e-mail address!

Post by epicflupe »

Still phpMyFAQ user error [256]: PMF_Mail Class: is not a valid e-mail address! in Mail.php on line 281
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: PMF_Mail Class: is not a valid e-mail address!

Post by Thorsten »

Hi,

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;
        }
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
epicflupe

Re: PMF_Mail Class: is not a valid e-mail address!

Post by epicflupe »

But will this also solve the "open questions"-problem?

If not, i´ll rather wait for the next release! :)
Thorsten
Posts: 15725
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: PMF_Mail Class: is not a valid e-mail address!

Post by Thorsten »

Hi,

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
epicflupe

Re: PMF_Mail Class: is not a valid e-mail address!

Post by epicflupe »

Unfortunately, still same problem after removal.
Post Reply