Support > cpg1.5 email

Correctly adding and using the tag '{EMAIL}'

(1/3) > >>

TeacherMac:
I added the tag '{EMAIL}' to register.php

$template_vars = array(
            '{SITE_NAME}' => $CONFIG['gallery_name'],
            '{USER_NAME}' => $user_name,
            '{ACT_LINK}'  => $act_link,
       '{EMAIL}'  => $email,

Which works fine when called in the new user's Registration confirmation email:

But does not work when used with the Registration request email received by the administrator.

$lang_register_approve_email = <<< EOT
A new user with the username "{USER_NAME}" and the email address "{EMAIL}" has registered in your gallery.
In order to activate the account, you need to click on the link below or copy and paste it in your web browser.

<a href="{ACT_LINK}">{ACT_LINK}</a>

EOT;

And doesn't work with the Activation notification email received by the new user:

$lang_register_php['activated_email'] = <<< EOT

Your account has been approved and activated.

You can now log in at <a href="{SITE_LINK}">{SITE_LINK}</a> using the email address you used to register "{EMAIL}"


Regards,

The management of {SITE_NAME}

EOT;

I just can't seem to find the answer so help would be appreciated.

TeacherMac:
I added the tag '{EMAIL}' to register.php

$template_vars = array(
            '{SITE_NAME}' => $CONFIG['gallery_name'],
            '{USER_NAME}' => $user_name,
            '{ACT_LINK}'  => $act_link,
       '{EMAIL}'  => $email,

Which works fine when called in the new user's Registration confirmation email:

But does not work when used with the Registration request email received by the administrator.

$lang_register_approve_email = <<< EOT
A new user with the username "{USER_NAME}" and the email address "{EMAIL}" has registered in your gallery.
In order to activate the account, you need to click on the link below or copy and paste it in your web browser.

<a href="{ACT_LINK}">{ACT_LINK}</a>

EOT;

And doesn't work with the Activation notification email received by the new user:

$lang_register_php['activated_email'] = <<< EOT

Your account has been approved and activated.

You can now log in at <a href="{SITE_LINK}">{SITE_LINK}</a> using the email address you used to register "{EMAIL}"


Regards,

The management of {SITE_NAME}

EOT;

I just can't seem to find the answer so help would be appreciated.

TeacherMac:
Appears I posted this in the wrong forum.

I have posted it to the correct forum so please disregard the posting here.

Thanks,

Mac

TeacherMac:
Seems someone, trying to be helpful, may have inadvertently given the impression that this request for support was answered.

Probably because I originally posted in the wrong forum and tried to resolve that myself.

In short, I would appreciate help in resolving my problem.

Thanks and best wishes to all for the New Year,

Mac

Αndré:
Please check if you have added

--- Code: ---'{EMAIL}'  => $email,
--- End code ---
to all occurrences of

--- Code: ---            $template_vars = array(
                '{SITE_NAME}' => $CONFIG['gallery_name'],
                '{USER_NAME}' => $row['user_name'],
                '{ACT_LINK}' => $act_link,
            );
--- End code ---
(there are 4 in register.php).

Navigation

[0] Message Index

[#] Next page

Go to full version