fileSystemRoot/lib/email/Email.inc");
if(checkSession()) {
// include the page template (with navbar)
require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
// when email button sent..send email
if ($submit) {
//set up body and link
$body = $message;
$hyperlink = $linkToBug;
//create email object
$emailLink= new Email();
//send email
$success = $emailLink->sendHelpEmail($fromEmail,$fromName,$toEmail,$subject,$body, $hyperlink);
//if successful ..rerender the page
if($success == True) {
$Center = "
Email Successfully Sent";
$oPatternCustom = & new PatternCustom();
$oPatternCustom->setHtml($Center);
$main->setCentralPayload($oPatternCustom);
$main->render();
} Else {
$Center = "
Email Unsuccessful";
$oPatternCustom = & new PatternCustom();
$oPatternCustom->setHtml($Center);
$main->setCentralPayload($oPatternCustom);
$main->render();
}
} else {
//create the necessary HTML for the emailing
$Center = "
| To Email: | |
| Your Name: | |
| Your Email: | |
| Subject: | |
| Link to Page: | |
| Bug Description: | |