Login   Register  
PHP Classes
elePHPant
Icontem

Mail aliases

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      cPanel Tools  >  All threads  >  Mail aliases  >  (Un) Subscribe thread alerts  
Subject:Mail aliases
Summary:is it possible to create aliases?
Messages:2
Author:Petar
Date:2007-10-08 18:21:58
Update:2007-10-17 08:21:33
 

  1. Mail aliases   Reply   Report abuse  
Picture of Petar
Petar
2007-10-08 18:21:58
Hi,

I am searching for script to create cPanel email aliases at my website.

I now how to create emails and setup forwarders, but I am searching for aliases. The main difference I am searching for is to create one main mail box and unlimited aliases. Every mail sent to eny of existing aliases will be stored into the main account. I do not want to waste space storing mails in tho places as forwarders work.


Thank you

  2. Re: Mail aliases   Reply   Report abuse  
Picture of David Barnes
David Barnes
2007-10-17 08:21:34 - In reply to message 1 from Petar
If you create a fowarder for an email address which doesn't exist the mail will be forwarded and only stored in 1 place.

For example:

include('cPanelTools.php');

$cpanel = new cPanelTools('username','password','example.com');

// create main email address
$cpanel->emailCreate('bigemail@example.com','mypass');

// create a email forward for "smallemail@example.com" without actually creating the email address

$cpanel->emailForward('smallemail@example.com','bigemail@example.com');


All emails sent to smallemail@example.com would be forwarded and stored at bigemail@example.com