No mail sent to the administrator - cpg 1.5.24 No mail sent to the administrator - cpg 1.5.24
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

No mail sent to the administrator - cpg 1.5.24

Started by ogio71, October 26, 2013, 09:08:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ogio71

Hi all,

I installed CPG1.5.24, and configured it to send email for the registration.
The email to the user is correctly sent, but, after the user click on the link in the email, nothing arrive to the administrator.
I changed the include/functions.inc.php with the code suggested on a different thread, but nothing changed.
The code I added was
if ( !function_exists('htmlspecialchars_decode') )
{
    function htmlspecialchars_decode($text)
    {
        return strtr($text, array_flip(get_html_translation_table(HTML_SPECIALCHARS)));
    }
}


After the administrator activated the user, another email is sent to the user.
So I can't understand why only emails to the administrator are not sent.

I tested it with 2 different admin account, without any results.
Can someone know if there is an issue regarding that?

Regards
Ambrogio

ogio71

Hi all,
There is a problem that I can't understand.
In the configuration field, there is a field "gallery_admin_email" and i configured the administrator email there.
So I think that all registration mails should be delivered to this address.

There is also another field in the user table, for the root user.
In my case the email address is different from the admin email.

Now, the email registration are delivered to the root address and not to the admin address.

Otherwise, the comments are delivered to the admin address.
I think this is a bug
What do you think about?

Regards
Ambrogio

Αndré

Quote from: ogio71 on October 28, 2013, 10:25:20 PM
the email registration are delivered to the root address and not to the admin address.
Does this mean your initial issue doesn't exist at all, as the email has been sent just to another address than you expected?


Quote from: ogio71 on October 28, 2013, 10:25:20 PM
I think this is a bug
What do you think about?
It's definitely inconsistent. I haven't checked the docs or the code yet if this behavior is intended.

ogio71

Hi André
Thankyou for reply.

Quote from: Αndré on October 29, 2013, 04:04:08 PM
Does this mean your initial issue doesn't exist at all, as the email has been sent just to another address than you expected?
Yes.. the initial issue doesn't exist because I checked for mails delivered to an account  :(

Quote from: Αndré on October 29, 2013, 04:04:08 PM
It's definitely inconsistent. I haven't checked the docs or the code yet if this behavior is intended.
I don't know, but I think it is an error, even if the root account and the administrator account can be the same uman, the email addresses can be different.

Let me know if you check it
I can't understand PHP so I can't check the code.

Regards
Ambrogio