2

How do I edit the default email that gets sent to admin upon new user registration? I presume this is being managed by LoginToboggan because its being referenced in the email body text:

UserName has applied for an account.

http://example.com/user/XX/edit

 

 

The user has automatically received the permissions of the LoginToboggan validating role. To give the user full site permissions, click the link below:

http://example.com/user/validate/XX/XXXXXXXXXXX/XXXXXXXXX_XXXXXXXXXXXXXXXX-XXXXXXXXXXXXX/admin

Alternatively, you may visit their user account listed above and remove them from the validating role.

1 Answer 1

1

If you look into logintoboggan.module you would see that this message is hard-coded and appended using the hook_mail_alter function and that it's altering the Welcome (awaiting approval) (user_register_pending_approval_admin) located in admin/config/people/accounts. So if you like to append the data in the middle, you can edit the said email body in the admin page but if you also like to alter the message by logintoboggan then you need to implement hook_mail_alter also.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.