Creating an email account via a php script

They have: 1 posts

Joined: Sep 2005

Is there any way to create an email account from a php script?

I was thinking that something like useradd would work via the exec() command, and tried to but to no avail.

Any insight would be greatly appreciated. I can have root access to the server if necessary.

They have: 15 posts

Joined: Sep 2005

exec()/system() should work if you are not running php in safe mode
another idea is to write the adduser commands to a file, and run crontab each minute to execute the file

www.busybits.com - list your site and increase your exposure

They have: 23 posts

Joined: Dec 2005

I tried creating so it was integrated basicly with cPanel.. I did it for a multiforums site to create subforums... but i could never get the e-mail to work.. sadly enough.. Mad

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.