emailing a password
I've created a simple script that creates a user password and stores it in database (along with the user's e-mail address).
I'd like to have the password automatically e-mailed to the user, but don't know how to do this. I've checked out hotscripts, but didn't come across anything.
I think the best thing to do is have the username and passwords stored into a variable, and then use the mail() command to send them.
mail (string to, string subject, string message [, string additional_headers, string [additional_parameters]])
Thanks. That was fast.
P.S. Next time I'll try the manual first.