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'
creating email aliases on the fly with php?
Moderator: General Moderators
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: creating email aliases on the fly with php?
Yes but you will have to drop into the shell from php
Re: creating email aliases on the fly with php?
do you know of any sample scripts out there that will work for my purposes?jaoudestudios wrote:Yes but you will have to drop into the shell from php
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: creating email aliases on the fly with php?
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
Here is one that caught my eye...
http://www.zubrag.com/scripts/cpanel-cr ... ccount.php
Re: creating email aliases on the fly with php?
Does it matter that I use Plesk instead of CPanel?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
- jaoudestudios
- DevNet Resident
- Posts: 1483
- Joined: Wed Jun 18, 2008 8:32 am
- Location: Surrey
Re: creating email aliases on the fly with php?
You will have to read the article.
However, it should not do as both access and save everything in a database.
However, it should not do as both access and save everything in a database.
Re: creating email aliases on the fly with php?
It's making a call to this URL which may not be present on my server:jaoudestudios wrote:You will have to read the article.
However, it should not do as both access and save everything in a database.
/frontend/$cpskin/mail/doaddpop.html?