Send login details by mail when new user added

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
10010110

Send login details by mail when new user added

Post by 10010110 »

Currently if a new user is added I have to tell him/her the login details. Is there an option for the data to be sent to the user by mail automatically that I might have oveseen? And if not could that be included in the next version?

Thanks a lot guys'n'gals! :)
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Send login details by mail when new user added

Post by tsw »

you could write a litle udt to send those and use hook it into usercreation event..
10010110

Re: Send login details by mail when new user added

Post by 10010110 »

Sorry, english ain't my native language and I don't quite understand what you are talking about.  ??? Could you elaborate a little more? Thanks.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Send login details by mail when new user added

Post by tsw »

heh, english isnt my native language either ;)

cmsms has events for actions. one of them is AddUserPost which gets executed when new user is created. now the great thing about events is that you can add your own code to be executed (hook it up) once the event is triggered.

now if you create a user defined tag which sends email according to the data given from the event (most probably a user object) and hook it to the event it will be executed every time a new user is added.

I might need this too but dont have time to write it this week. I think that wiki has some examples about creating udt's for events...

hope this helps


(edited to include the event name)
10010110

Re: Send login details by mail when new user added

Post by 10010110 »

Thanks for the explanation. That makes sense. :)

I just had an idea. When installing the CMS there is an option to send the login details by email. Is it possible to use that script for this purpose? And if yes where can I find that script?
I'm not that PHP savvy yet to write my own from mind...

Thanks.
Locked

Return to “CMSMS Core”