mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-11 09:11:05 +01:00
59 lines
1.7 KiB
PHP
59 lines
1.7 KiB
PHP
|
<?php
|
||
|
/***************************************************************************\
|
||
|
* EGroupWare - EMailAdmin *
|
||
|
* http://www.egroupware.org *
|
||
|
* Written by : Lars Kneschke [lkneschke@linux-at-work.de] *
|
||
|
* ------------------------------------------------- *
|
||
|
* This program is free software; you can redistribute it and/or modify it *
|
||
|
* under the terms of the GNU General Public License as published by the *
|
||
|
* Free Software Foundation; either version 2 of the License, or (at your *
|
||
|
* option) any later version. *
|
||
|
\***************************************************************************/
|
||
|
/* $Id$ */
|
||
|
|
||
|
class defaultsmtp
|
||
|
{
|
||
|
var $profileData;
|
||
|
|
||
|
// the constructor
|
||
|
function defaultsmtp($_profileData)
|
||
|
{
|
||
|
$this->profileData = $_profileData;
|
||
|
}
|
||
|
|
||
|
// add a account
|
||
|
function addAccount($_hookValues)
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
// delete a account
|
||
|
function deleteAccount($_hookValues)
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
function getAccountEmailAddress($_accountName)
|
||
|
{
|
||
|
$accountID = $GLOBALS['phpgw']->accounts->name2id($_accountName);
|
||
|
$emailAddress = $GLOBALS['phpgw']->accounts->id2name(accountID,'account_email');
|
||
|
if(empty($emailAddress))
|
||
|
$emailAddress = $_accountName.'@'.$this->profileData['defaultDomain'];
|
||
|
|
||
|
return array(
|
||
|
array(
|
||
|
'name' => $GLOBALS['phpgw_info']['user']['fullname'],
|
||
|
'address' => $emailAddress,
|
||
|
'type' => 'default'
|
||
|
)
|
||
|
);
|
||
|
}
|
||
|
|
||
|
// update a account
|
||
|
function updateAccount($_hookValues)
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
?>
|