Page 1 of 1
Send login details by mail when new user added
Posted: Sat Oct 14, 2006 3:03 pm
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!

Re: Send login details by mail when new user added
Posted: Sat Oct 14, 2006 3:14 pm
by tsw
you could write a litle udt to send those and use hook it into usercreation event..
Re: Send login details by mail when new user added
Posted: Wed Oct 18, 2006 7:31 pm
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.
Re: Send login details by mail when new user added
Posted: Wed Oct 18, 2006 10:30 pm
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)
Re: Send login details by mail when new user added
Posted: Thu Oct 26, 2006 10:35 pm
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.