[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /***************************************************************************\ 3 * EGroupWare - EMailAdmin * 4 * http://www.egroupware.org * 5 * Written by : Lars Kneschke [lkneschke@linux-at-work.de] * 6 * ------------------------------------------------- * 7 * This program is free software; you can redistribute it and/or modify it * 8 * under the terms of the GNU General Public License as published by the * 9 * Free Software Foundation; either version 2 of the License, or (at your * 10 * option) any later version. * 11 \***************************************************************************/ 12 /* $Id: class.defaultsmtp.inc.php 19408 2005-10-14 10:10:06Z ralfbecker $ */ 13 14 class defaultsmtp 15 { 16 var $profileData; 17 18 // the constructor 19 function defaultsmtp($_profileData) 20 { 21 $this->profileData = $_profileData; 22 } 23 24 // add a account 25 function addAccount($_hookValues) 26 { 27 return true; 28 } 29 30 // delete a account 31 function deleteAccount($_hookValues) 32 { 33 return true; 34 } 35 36 function getAccountEmailAddress($_accountName) 37 { 38 $accountID = $GLOBALS['egw']->accounts->name2id($_accountName); 39 $emailAddress = $GLOBALS['egw']->accounts->id2name($accountID,'account_email'); 40 if(empty($emailAddress)) 41 $emailAddress = $_accountName.'@'.$this->profileData['defaultDomain']; 42 43 return array( 44 array( 45 'name' => $GLOBALS['egw_info']['user']['fullname'], 46 'address' => $emailAddress, 47 'type' => 'default' 48 ) 49 ); 50 } 51 52 function saveSMTPForwarding($_accountID, $_forwardingAddress, $_keepLocalCopy) 53 { 54 return true; 55 } 56 57 // update a account 58 function updateAccount($_hookValues) 59 { 60 return true; 61 } 62 } 63 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |