
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