From: Enrico G. <Enr...@cc...> - 2001-08-23 12:11:17
|
Hi all, I don't know if you have already inserted this option, but for us it would be nice to have a Email notification to the administrator after a Ticket assignment. I have made a quick (and dirty) patch for the module "scripts/addjob.scp.php". Maybe you can use it: please cut here --------------------------------------------------------------------------- ------------ --- addjob.scp.php.orig Thu Aug 23 09:11:42 2001 +++ addjob.scp.php Thu Aug 23 09:15:27 2001 @@ -48,6 +48,24 @@ $mailbody .= "$l_senton ".$readable_date." ".$readable_time." $l_usingusername \"$user.\""; $mailbody .= "\n------------------------------------------------------------------------ "; + + $mailbody2 = "\n\nHello Admin group member,\n"; + $mailbody2 .= "\nthe User $txtUserLastName has opened this new Ticket:"; + $mailbody2 .= "\n\n---------------------------------------------------------------------- --\n"; + if ($g_dept_or_comp == 0) { + $mailbody2 .= "$l_department: $Company\n"; + } + else { + $mailbody2 .= "$l_company: $Company\n"; + } + $mailbody2 .= "$l_category: $lstCategory\n"; + $mailbody2 .= "$l_summary: $txtSummary\n"; + $mailbody2 .= "$l_detail: $txtDetail\n"; + $mailbody2 .= "$l_location $txtLocation\n"; + $mailbody2 .= "\n"; + $mailbody2 .= "$l_senton ".$readable_date." ".$readable_time." $l_usingusername \"$user.\""; + $mailbody2 .= "\n------------------------------------------------------------------------ "; + if ($g_domainmailfrom == "") { $mailheader = "From: $user@$g_mailservername"; } @@ -58,9 +76,11 @@ $mailbody = stripslashes($mailbody); if (!empty($txtUserEmail)) { mail($mailto, $mailsubject, $mailbody, $mailheader); + mail($g_helpdesk_email, $mailsubject, $mailbody2, $mailheader); } if ($s_email != NULL) { mail($s_email, $mailsubject, $mailbody, $mailheader); + mail($g_helpdesk_email, $mailsubject, $mailbody2, $mailheader); } print "<center>$l_areceiptwassent $txtUserFirstName $txtUserLastName<BR></center>\n"; @@ -105,6 +125,7 @@ $mailheader = "From: $user@$g_mailservername"; mail($mailto, $mailsubject, $mailbody, $mailheader); + mail($g_helpdesk_email, $mailsubject, $mailbody2, $mailheader); print "<center>$l_mailwassent $lstAssignedto<BR></center>\n"; } please cut here --------------------------------------------------------------------------- --------------------- Enjoy E. Giakas |