creating email aliases on the fly 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
dm0nkey
Forum Newbie
Posts: 4
Joined: Wed Jul 30, 2008 10:06 am

creating email aliases on the fly with php?

Post by dm0nkey »

Is it possible to create email aliases on the fly with PHP.

For example, if I want users who create an account on my website, I want to create an associated email alias for them with my domain name. So in essence, there can be multiple email aliases that is associated with one mailbox.

1) User comes on my website http://www.mydomain.com
2) Creates an account with the user 'dm0nkey'
3) My script creates an email alias on the fly for 'dm0nkey@mydomain.com'
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: creating email aliases on the fly with php?

Post by jaoudestudios »

Yes but you will have to drop into the shell from php
dm0nkey
Forum Newbie
Posts: 4
Joined: Wed Jul 30, 2008 10:06 am

Re: creating email aliases on the fly with php?

Post by dm0nkey »

jaoudestudios wrote:Yes but you will have to drop into the shell from php
do you know of any sample scripts out there that will work for my purposes?
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: creating email aliases on the fly with php?

Post by jaoudestudios »

I went to the obvious place, Google and did a search, there are plenty of results.

Here is one that caught my eye...
http://www.zubrag.com/scripts/cpanel-cr ... ccount.php
dm0nkey
Forum Newbie
Posts: 4
Joined: Wed Jul 30, 2008 10:06 am

Re: creating email aliases on the fly with php?

Post by dm0nkey »

jaoudestudios wrote:I went to the obvious place, Google and did a search, there are plenty of results.

Here is one that caught my eye...
http://www.zubrag.com/scripts/cpanel-cr ... ccount.php
Does it matter that I use Plesk instead of CPanel?
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: creating email aliases on the fly with php?

Post by jaoudestudios »

You will have to read the article.

However, it should not do as both access and save everything in a database.
dm0nkey
Forum Newbie
Posts: 4
Joined: Wed Jul 30, 2008 10:06 am

Re: creating email aliases on the fly with php?

Post by dm0nkey »

jaoudestudios wrote:You will have to read the article.

However, it should not do as both access and save everything in a database.
It's making a call to this URL which may not be present on my server:

/frontend/$cpskin/mail/doaddpop.html?
Post Reply