Send user registration data by email

14 years 3 weeks ago #131041 by matrix845
Send user registration data by email was created by matrix845
Hi guys,

I'm customizing my project were I'm using CB 1.2.1 , I can't upgrade for now because there is a lot of css modify and I haven't time now.

I need when an user register to the site, to send his data to an email address or site's admin.

I need to send the normal data (like name, surname, email etc), some custom fied and naturally NOT the password.

I'm trying to hack registration form and take the data sended by post with my script.

Can you help me for finding a way to take this data?

Later of this is simply to send via email!

Thanks for the attention

Goodbye

Please Log in to join the conversation.

14 years 3 weeks ago #131142 by krileon
Replied by krileon on topic Re:Send user registration data by email
There's no need to make core modifications. Simply add substitutions to the Pending or Welcome emails found at Joomla Backend > Components > Community Builder > Configuration > Registration. For substitution usage information please see tutorials within my signature.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

14 years 2 weeks ago #131234 by matrix845
Replied by matrix845 on topic Re:Send user registration data by email
Hi krileon,

thanks for your reply.

I read all your tutorial and the informations that you write to me.

But I need to send by email the user registration, not to the user but to the admin, for example:

" Hi admin,

you have a new user:

Name: Steve
Gender: Male
Age: 25

Goodbye"

where the data geneder and age are filed required to the user in the registration form.

The workflow must to be.

User registers in the registration form -->
admin receives the email with the user data and check it -->
the admin goes in the backend and confirm and approve user.

Is this possible?
I understand the substitution, but I don't know how to send email to the admin or my selected email!

Thanks a lot

Goodbye

Please Log in to join the conversation.

14 years 2 weeks ago #131323 by krileon
Replied by krileon on topic Re:Send user registration data by email
Oh, you're wanting to add substitutions to the emails sent to administrators. You'll need to edit a language string in order to add further fields to the administrator email. Please see below language string (all code lines assume CB 1.2.2 is used).

IN: components/com_comprofiler/plugin/language/default_language/default_language.php
ON: Lines 165-170
[code:1]
DEFINE ('_UE_REG_ADMIN_PA_MSG','A new user has registered at [SITEURL] and requires approval.\n'
.'This email contains their details\n\n'
.'Name - [NAME]\n'
.'E-mail - [EMAILADDRESS]\n'
.'Username - [USERNAME]\n\n\n'
.'Please do not respond to this message as it is automatically generated and is for informational purposes only.\n');
[/code:1]

Simply modify this language string with what information you wish to provide. For further details on substitutions please see tutorials in my signature.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.166 seconds

Facebook Twitter LinkedIn