The server is Plesk 7.1.4 (Plesk 7 Reloaded) on FC2. I only require your script to support this version on this server.
I want a function, preferably from PHP, which I can use to setup a new email account which will work with plesk. i.e. setup the record in psa database as well as qmail, etc.
It only needs to work with one domain. I want to supply the account name i.e. "support" and the password e.g. "pass123" and the script should make the email account and set it up with a 50Mb mail box which can be accessed using the normal things plesk gives (webmail, pop/imap).