Copy Of User Activation Mail

Hi friends,

how can I send a copy of user activation mail to sales department too?

I wish you a nice day

Frank

app/functions/fn.users.php

Replace:


if ($action == ‘update’ && $current_user_data[‘status’] === ‘D’ && $user_data[‘status’] === ‘A’) {
Mailer::sendMail(array(
‘to’ => $user_data[‘email’],
with
if ($action == ‘update’ && $current_user_data[‘status’] === ‘D’ && $user_data[‘status’] === ‘A’) {
Mailer::sendMail(array(
‘to’ => array($user_data[‘email’], ‘company_users_department’),

(!) Not tested

app/functions/fn.users.php

Replace:

if ($action == 'update' && $current_user_data['status'] === 'D' && $user_data['status'] === 'A') {
            Mailer::sendMail(array(
                'to' => $user_data['email'],
with
if ($action == 'update' && $current_user_data['status'] === 'D' && $user_data['status'] === 'A') {
            Mailer::sendMail(array(
                'to' => array($user_data['email'], 'company_users_department'),
(!) Not tested

Thank you Master, but doesn't work.

Any solution?

Thank you in advance

Frank

Strange to hear that. Try another way:

'to' => $user_data['email'] . ',' . Registry::get('settings.Company.company_users_department'),

Strange to hear that. Try another way:

'to' => $user_data['email'] . ',' . Registry::get('settings.Company.company_users_department'),

Hi eComLabs,

not workig too.

I have try even:

'bcc' => 'company_orders_department',

but not works too.

Any Idea?

version 4.2.x

May be I did not understand what you mean by "Activation Mail" ? Please clarify what e-mail do you want to receive?

May be I did not understand what you mean by "Activation Mail" ? Please clarify what e-mail do you want to receive?

Hi eComLabs,

Admin must activate a user, and I want the users dept recieve a copy of email, goes to customer.

Any Idea please?

Frank

The customer receives default notification about new profile and notification is displayed to the browser what the profile should be activated. Also the system sends e-mail to users departments that the account should be activated.

Sorry but it is not clear what e-mail do you mean.

The customer receives default notification about new profile and notification is displayed to the browser what the profile should be activated. Also the system sends e-mail to users departments that the account should be activated.

Sorry but it is not clear what e-mail do you mean.

When admin activate user and check "notify user", the mail is send to user, that account is activated.

I want the same mail user recieve send to user dept too.

Frank

notify.jpg

When admin activate user and check "notify user", the mail is send to user, that account is activated.

I want the same mail user recieve send to user dept too.

Frank

OK. It is clear now. The provided solution should work. If it still does not work, please PM me temporary FTP access so that we can examine it