create SMTP accounts with php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

create SMTP accounts with php

Post 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 ?
User avatar
Buddha443556
Forum Regular
Posts: 873
Joined: Fri Mar 19, 2004 1:51 pm

Post by Buddha443556 »

We're going to need more details about the server's setup? Operating system? Control panel? Email?
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Post by miro_igov »

do you need the password too :)

Could be done with

Code: Select all

imap_createmailbox()
miro_igov
Forum Contributor
Posts: 485
Joined: Fri Mar 31, 2006 5:06 am
Location: Bulgaria

Post by miro_igov »

But this function does not have param for setting the password for the new mailbox.

Anyone with experience on that subject ?
User avatar
panic!
Forum Regular
Posts: 516
Joined: Mon Jul 31, 2006 7:59 am
Location: Brighton, UK

Post by panic! »

imap_createmailbox()

creates a new 'folder' in their account.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
Post Reply