how to migrate custom user field into user registeration email - drupal 7 - email

I have create a custom user field called pm-id. I wish to include this in to the user registration email.
The standard method [user:pm_id] not working
Can anyone help me
Thank you

Try either [user:field_pm_id] or [user:field_pm-id]. I'm not sure what the machine name for your field is and it's definitely not just pm-id.
If you install the Token module, you should be able to see what tokens are available to you.

Related

Using One-Time-Password in moodle

I am using moodle 2.x for some testing courses.
I'd like to use one-time-password for moodle login.
That means when users login with certain password, then they can take exams in that session.
However if they close the window or login their account, they can't login again anymore. And if they want to continue to take another exam, the teacher or administrator will help them by provide another password or something like that help them to login again.
Thanks all,
Noat
Either you will have to write a new auth plugin or you can use
prelogout_hook()
https://docs.moodle.org/dev/Authentication_plugins#pre_loginpage_hook.28.29
to suspend the use account

How to make Moodle include user passwords in the e-mails it sends?

I'm looking for a way to make Moodle 2.9 include user passwords in the introductory e-mails it sends upon manual upload of CSV table with new user data.
So far it is sending introductory e-mails with text that is set up in the local_welcome plugin that is configurable via
Plugins/Local Plugins/Moodle welcome
This text contains fields such as [[username]], [[fullname]] which get replaced by the actual values, but no such field as [[password]].
I have tried including both [[password]] and {$a->newpassword} in the text but neither works, Moodle does not replace these strings with the actual password; these strings are sent verbatim instead. This happens irrespective of whether the passwords are uploaded via the CSV or generated.
So far I had no luck finding a solution to this on the web. The official help page on this function is unfortunately empty:
https://docs.moodle.org/29/en/admin/setting/local_welcome
Strangely enough, when I create just one user by hand in Moodle via
Users/Add a new user,
the e-mail it sends to the user is not that from plugin local_welcome. A string defined somewhere in the moodle php files is used. This contains string {$a->newpassword} and it works as expected; the user obtains both username and password.
How do I make bulk upload behave similarly? I'm looking for any doable way to make this work. If my question is not clear, please ask in the comments.
Sending plain password over email is not secure that's why Moodle prevent it.While uploading user record you can follow these steps,
enable Generate password and notify user.
or,
set your own password and enable Force password change.
It depends on configuration of bulk upload
Password field: (...) If omitted, a password will be generated for
each user (during the next Cron job) and welcome e-mails sent out.
https://docs.moodle.org/29/en/Upload_users#Fields_that_can_be_included
Just udate all existing users with the same password using csv file. Then use Moodle welcome to send bulk email with their different user name using [[username]] and then type the default password you chose in csv. And it is better to force change password after first login

form to submit to the user's email address

I am trying to create a question and answer style quiz on a website, using forms. I would like the submit button to email the user only, from a field he/she has previously filled in, but I can't figure out how. Also, advice on whether php is the best language to write this in?
I am very new to this and would really appreciate any help. Many thanks
use the phpmailer function to send emails using php. You can read more about it here and get the library from github here

sugarcrm-Login to sugarcrm application with google account

I'm able to setup sugarcrm to my local machine. Also I've a bit of knowledge of studio. Now I've got a requirement like login to sugarcrm using google account. If user want to login to sugar he/she'll have to use his/her google credential. If the credential is correct and the email id matches with the email id for a user in user module, the he'll be able to login to sugar.
I'm pretty new to sugar so please provide help. Please write if the problem description is not clear to you.
Thanks
It sounds like your goal is to enable Google Authentication within SugarCRM, which would mean a rewrite of the entire login page and process. I think that's beyond the scope of a SO post, but I think you'd start here: https://code.google.com/p/google-authenticator/
SugarCRM does come equipped with the Zend Library, including a lot of classes for working with Google APIs, so that's a plus.
A simpler answer, if it meets requirements, is to set the Users' user_names to their google email addresses, either #gmail.com or #googleappdomain.com, whatever. The draw back here is that the accounts aren't actually linked with Google, so passwords won't stay in sync.

Suggest best way to do this approval workflow for share point form library to send email to the user

I have created the Info path form.
Once the new form created i need to send the email to users which the user selected in the people picker field.
Is that possible to do this using Designer,or VS 2010.
Give some reference to do this.
http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010general/thread/817c0905-be9c-4b69-aee6-1c5043fc835c/