1 | <?php |
---|
2 | /**************************************************************************\ |
---|
3 | * eGroupWare - Online User manual * |
---|
4 | * http://www.eGroupWare.org * |
---|
5 | * Written and (c) by RalfBecker@outdoor-training.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 | /* $Id: index.php,v 1.13 2004/04/13 08:19:10 ralfbecker Exp $ */ |
---|
14 | |
---|
15 | $GLOBALS['phpgw_info']['flags'] = array( |
---|
16 | 'currentapp' => 'help', |
---|
17 | 'nonavbar' => true, |
---|
18 | 'noheader' => true, |
---|
19 | ); |
---|
20 | |
---|
21 | include('../header.inc.php'); |
---|
22 | if($_POST){ |
---|
23 | |
---|
24 | $params['input_to'] = $GLOBALS['phpgw_info']['server']['sugestoes_email_to']; |
---|
25 | $params['input_cc'] = $GLOBALS['phpgw_info']['server']['sugestoes_email_cc']; |
---|
26 | $params['input_cc'] = $GLOBALS['phpgw_info']['server']['sugestoes_email_bcc']; |
---|
27 | $params['input_subject'] = lang("Suggestions"); |
---|
28 | $params['body'] = $_POST['body']; |
---|
29 | $params['type'] = 'textplain'; |
---|
30 | $GLOBALS['phpgw']->preferences->read_repository(); |
---|
31 | $_SESSION['phpgw_info']['expressomail']['user'] = $GLOBALS['phpgw_info']['user']; |
---|
32 | $boemailadmin = CreateObject('emailadmin.bo'); |
---|
33 | $emailadmin_profile = $boemailadmin->getProfileList(); |
---|
34 | $_SESSION['phpgw_info']['expressomail']['email_server'] = $boemailadmin->getProfile($emailadmin_profile[0]['profileID']); |
---|
35 | $_SESSION['phpgw_info']['expressomail']['server'] = $GLOBALS['phpgw_info']['server']; |
---|
36 | $_SESSION['phpgw_info']['expressomail']['user']['email'] = $GLOBALS['phpgw']->preferences->values['email']; |
---|
37 | $expressoMail = CreateObject('expressoMail1_2.imap_functions'); |
---|
38 | $returncode = $expressoMail->send_mail($params); |
---|
39 | if (!$returncode) { |
---|
40 | echo "$to<Br>$subject<br>$tmpbody<br>$sender<br>\n"; |
---|
41 | echo '<i>'.$send->err['desc']."</i><br>\n"; |
---|
42 | exit; |
---|
43 | } |
---|
44 | else{ |
---|
45 | ExecMethod('help.uihelp.viewSuccess'); |
---|
46 | } |
---|
47 | } |
---|
48 | else { |
---|
49 | ExecMethod('help.uihelp.viewSuggestions'); |
---|
50 | } |
---|
51 | ?> |
---|