Page 1 of 1

create SMTP accounts with php

Posted: Fri Sep 29, 2006 5:39 am
by miro_igov
I wanted to make a registration script in a site to automatically create email accounts for the new registered members - username@domain.com

What function i need to do it or should i execute shell commands to do it ?


Or maybe something better ?

Posted: Fri Sep 29, 2006 7:53 am
by Buddha443556
We're going to need more details about the server's setup? Operating system? Control panel? Email?

Posted: Fri Sep 29, 2006 9:37 am
by miro_igov
do you need the password too :)

Could be done with

Code: Select all

imap_createmailbox()

Posted: Fri Sep 29, 2006 10:34 am
by miro_igov
But this function does not have param for setting the password for the new mailbox.

Anyone with experience on that subject ?

Posted: Fri Sep 29, 2006 11:19 am
by panic!
imap_createmailbox()

creates a new 'folder' in their account.

Posted: Fri Sep 29, 2006 1:13 pm
by Chris Corbyn
If you're using something like UW vIMAP then you just need to create a bunch of files. If you're using standard IMAP you'll likely need to create actual *nix user accounts. There are magic tricks you can do with a system_filter but your question is qay to general to provide this kind of information. You'll need to elaborate on your setup.