I want to create the option for my clients to create their own e-mail address.

When I do this in Telnet, I have to run the command 'vadduser'

It then asks me for a username, I want to assign this automatically. (1,2,3,4 etc etc)

It then asks me for a password, I want this to be something the user has already given in a form (before the script was run).

It then has to be retyped. Those two things can be done automatically.

It then asks if I want to assign a disk quota (YES) and then asks for the number of megabytes (1)

That's it.

Are there any examples available of how to do this?