#1 (permalink)  
Old 07-01-2004, 05:42 PM
Registered User
 
Join Date: Jun 2004
Posts: 5
AG-Soft
adding forwarder

hi!

I posted two days ago to ask for help to add an e-mail-forwarder through my php-script. I don't know what happened to the post, but I got some usefull help and I developed the following script. It might be helpfull for some of you.

PHP Code:
<?
//Variablen
$CPanelUser "user"//Ihr CPanel User-Name
$CPanelPass "pass"//Ihr CPanel-Passwort
$domain "domain"//Ihre Domain
$email "vordererteil";  //vorderer Teil der E-Mail-Adresse, die angelegt werden soll
$forward "weiterleitung"//an diese E-Mail-Adresse werden dann die E-Mails weitergeleitet

//ab hier nichts mehr ändern
$auth $CPanelUser.":".$CPanelPass;
$sAuth base64_encode($auth);
$sHTTP "GET /frontend/x/mail/doaddfwd.html?email=".$email."&domain=".$domain."&forward=".$forward."\r\n HTTP/1.0\r\nAuthorization: Basic $sAuth\r\n";
$hSocket fsockopen($domain2082);
fputs($hSocket$sHTTP);
fclose($hSocket);

//ENDE

?>
Even the description is in German, you should be able to understand it

Have fun with it!

Alexander Göbel
http://www.ag-hosting.de
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 05:43 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc