Subscription approved email - user credentials

  • wisenberger
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 5 months ago - 8 years 5 months ago #90753 by wisenberger
What settings control whether or not the user account credentials are included in the Subscription Approved email?

I'm wanting the username and password to be included in the Subscription Approved email.
I've run a number of tests and in one test the username and password were included - so I'm sure it's possible.
But I've changed my settings over the course of running numerous tests - and have lost track of which settings were set when the email did include the username and password.

Also -
Is it possible to create a template override for the email template view?

I tried by copying and editing the file:
/components/com_osmembership/view/emailtemplates/tmpl/email.php
to:
/templates/thenameofmytemplate/html/com_osmembership/emailtemplates/email.php

but it looks as though my override is not being used.

Thanks,
Diane
Last edit: 8 years 5 months ago by wisenberger.

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #90763 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Subscription approved email - user credentials
Hello

1. User password can only be sent if the users don't have an account before. Try to go to Users -> Manager, click on Options button in the toolbar, find the config option Send Password, set it to Yes and check it again

2. The email template should be allowed to override. In case it doesn't work, you can submit a support ticket so that I can ask my dev to check it for you

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • wisenberger
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
8 years 5 months ago - 8 years 4 months ago #90800 by wisenberger
Replied by wisenberger on topic Subscription approved email - user credentials
Hi Tuan,

1. Some of the settings I'm using:
Users -> Manager ->Options -> Send Password is and was previously set to "Yes".
Users -> Manager ->Options ->New User Account Activation = Administrator

Registration Integration = Yes
Use email as username = Yes
Only create user account when membership active/approved = No - ( also tested with Yes - same results - password wasn't included in the Subscription approved email)

I am importing subscriptions - (testing with just one record - but will be importing 150 or so). I'm supplying the email address in the 'username' field and no value entered in the 'password' field so that a random password will be generated and I'm setting the status to 0 - pending. The Joomla New User Details email is being sent and it includes the username (email address) and randomly generated password. When the pending subscription is 'published', I'm also wanting the Membership Pro "Subscription Approved" email which is sent to also include the username and password - but I haven't been able to get the password to be included in the Subscription Approved email. I am trying to avoid having to enter each of 150 users manually. Is it possible to include the password in the Subscription approved email when using importing users/subscriptions? I was able to get the password to be included on one of my tests that I ran before I updated the Membership Pro version...not sure what my settings were and whether the update is a factor.

I've noticed that the password field in the database is named "user_password" - but the field in the 'CSV Import Template' uses the field name 'password'. I used the CSV Import Template as the basis for the import csv file that I am using. I tested it with the field name (heading) "password' and also with the field name 'user_password'. I thought that it might be causing the problem - but still the password is not included in the Subscription Approved email.


2. My template override is working - after all.

Thanks!
Diane
Last edit: 8 years 4 months ago by wisenberger.

Please Log in or Create an account to join the conversation.

More
8 years 4 months ago #90808 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Subscription approved email - user credentials
Hi Diane

No, it is not possible to send the password in this case. As you described, when you run the import, the system / Joomla send username and password to users already

In Joomla, password is encrypted and there is no way to get back the original password. That's why we could not send the password in this case when subscription is approved

Regards,

Tuan
The following user(s) said Thank You: wisenberger

Please Log in or Create an account to join the conversation.