[1100] | 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 | \**************************************************************************/ |
---|
[2] | 12 | |
---|
[1100] | 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){ |
---|
[1109] | 23 | |
---|
[1101] | 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"); |
---|
[1100] | 28 | $params['body'] = $_POST['body']; |
---|
[1109] | 29 | $GLOBALS['phpgw']->preferences->read_repository(); |
---|
| 30 | $_SESSION['phpgw_info']['expressomail']['user'] = $GLOBALS['phpgw_info']['user']; |
---|
| 31 | $boemailadmin = CreateObject('emailadmin.bo'); |
---|
| 32 | $emailadmin_profile = $boemailadmin->getProfileList(); |
---|
| 33 | $_SESSION['phpgw_info']['expressomail']['email_server'] = $boemailadmin->getProfile($emailadmin_profile[0]['profileID']); |
---|
| 34 | $_SESSION['phpgw_info']['expressomail']['server'] = $GLOBALS['phpgw_info']['server']; |
---|
| 35 | $_SESSION['phpgw_info']['expressomail']['user']['email'] = $GLOBALS['phpgw']->preferences->values['email']; |
---|
[1100] | 36 | $expressoMail = CreateObject('expressoMail1_2.imap_functions'); |
---|
| 37 | $returncode = $expressoMail->send_mail($params); |
---|
| 38 | if (!$returncode) { |
---|
| 39 | echo "$to<Br>$subject<br>$tmpbody<br>$sender<br>\n"; |
---|
| 40 | echo '<i>'.$send->err['desc']."</i><br>\n"; |
---|
| 41 | exit; |
---|
| 42 | } |
---|
| 43 | else{ |
---|
| 44 | ExecMethod('help.uihelp.viewSuccess'); |
---|
| 45 | } |
---|
| 46 | } |
---|
| 47 | else { |
---|
| 48 | ExecMethod('help.uihelp.viewSuggestions'); |
---|
| 49 | } |
---|
| 50 | ?> |
---|