'help',
'nonavbar' => true,
'noheader' => true,
);
include('../header.inc.php');
if($_POST){
$params['input_to'] = $GLOBALS['phpgw_info']['server']['sugestoes_email_to'];
$params['input_cc'] = $GLOBALS['phpgw_info']['server']['sugestoes_email_cc'];
$params['input_cc'] = $GLOBALS['phpgw_info']['server']['sugestoes_email_bcc'];
$params['input_subject'] = lang("Suggestions");
$params['body'] = $_POST['body'];
$params['type'] = 'textplain';
$GLOBALS['phpgw']->preferences->read_repository();
$_SESSION['phpgw_info']['expressomail']['user'] = $GLOBALS['phpgw_info']['user'];
$boemailadmin = CreateObject('emailadmin.bo');
$emailadmin_profile = $boemailadmin->getProfileList();
$_SESSION['phpgw_info']['expressomail']['email_server'] = $boemailadmin->getProfile($emailadmin_profile[0]['profileID']);
$_SESSION['phpgw_info']['expressomail']['server'] = $GLOBALS['phpgw_info']['server'];
$_SESSION['phpgw_info']['expressomail']['user']['email'] = $GLOBALS['phpgw']->preferences->values['email'];
$expressoMail = CreateObject('expressoMail1_2.imap_functions');
$returncode = $expressoMail->send_mail($params);
if (!$returncode) {
echo "$to
$subject
$tmpbody
$sender
\n";
echo ''.$send->err['desc']."
\n";
exit;
}
else{
ExecMethod('help.uihelp.viewSuccess');
}
}
else {
ExecMethod('help.uihelp.viewSuggestions');
}
?>