Revision 2,
1.6 KB
checked in by niltonneto, 18 years ago
(diff) |
Removida todas as tags usadas pelo CVS ($Id, $Source).
Primeira versão no CVS externo.
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
Line | |
---|
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 | |
---|
13 | class defaultsmtp |
---|
14 | { |
---|
15 | var $profileData; |
---|
16 | |
---|
17 | // the constructor |
---|
18 | function defaultsmtp($_profileData) |
---|
19 | { |
---|
20 | $this->profileData = $_profileData; |
---|
21 | } |
---|
22 | |
---|
23 | // add a account |
---|
24 | function addAccount($_hookValues) |
---|
25 | { |
---|
26 | return true; |
---|
27 | } |
---|
28 | |
---|
29 | // delete a account |
---|
30 | function deleteAccount($_hookValues) |
---|
31 | { |
---|
32 | return true; |
---|
33 | } |
---|
34 | |
---|
35 | function getAccountEmailAddress($_accountName) |
---|
36 | { |
---|
37 | $accountID = $GLOBALS['phpgw']->accounts->name2id($_accountName); |
---|
38 | $emailAddress = $GLOBALS['phpgw']->accounts->id2name($accountID,'account_email'); |
---|
39 | if(empty($emailAddress)) |
---|
40 | $emailAddress = $_accountName.'@'.$this->profileData['defaultDomain']; |
---|
41 | |
---|
42 | return array( |
---|
43 | array( |
---|
44 | 'name' => $GLOBALS['phpgw_info']['user']['fullname'], |
---|
45 | 'address' => $emailAddress, |
---|
46 | 'type' => 'default' |
---|
47 | ) |
---|
48 | ); |
---|
49 | } |
---|
50 | |
---|
51 | // update a account |
---|
52 | function updateAccount($_hookValues) |
---|
53 | { |
---|
54 | return true; |
---|
55 | } |
---|
56 | } |
---|
57 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.