<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
hello<BR>
&nbsp;<BR>
the notify.php script is particularly useful for emailing requests. <BR>
in one instance i have a group called ServerReboot with a wikiform to action the request.&nbsp;an email is generated, in the style of:<BR>
&nbsp;<BR>
subject of mail - Server Reboot Request<BR>
body of mail - <FONT face=Courier size=2>To view the request please visit: <A href="http://name/index.php?n=ServerReboot.00017">http://name/index.php?n=ServerReboot.00017</A></FONT><BR>
<FONT face=Courier size=2></FONT>&nbsp;<BR>
<FONT face=Courier>this is pulled from</FONT><BR>
<FONT face=Courier></FONT>&nbsp;<BR><FONT size=2>
SDV($NotifySubjectFmt, 'Server Reboot Request');<BR>
SDV($NotifyBodyFmt, <BR>
"To view the request please visit: \$NotifyItems\n");<BR></FONT>
<FONT face=Courier></FONT>&nbsp;<BR>
<FONT face=Courier>whilst config has</FONT><BR>
<FONT face=Courier></FONT>&nbsp;<BR><FONT size=2>
ini_set('sendmail_from','name'); <BR>
$NotifyList[] = <A href="mailto:'notify=name@name.co.uk">'notify=name@name.co.uk</A> name=ServerReboot.0*';<BR>
$NotifyList[] = <A href="mailto:'notify=name@name.co.uk">'notify=name@name.co.uk</A> name=SecondGroup.0*';<BR>
$NotifyList[] = <A href="mailto:'notify=name@name.co.uk">'notify=name@name.co.uk</A> name=ThirdGroup.0*';<BR>
$NotifyDelay = 0;<BR>
$NotifySquelch = 0;<BR>
$NotifyTimeFmt = 'm-H:%M';<BR>
$NotifyItemFmt = "\$PageUrl";<BR></FONT>
<FONT face=Courier></FONT>&nbsp;<BR>
<FONT face=Courier size=2>i appreciate it's not good practice editing the scripts themselves (in case of future upgrades). it was just easier for me!</FONT><BR>
<FONT face=Courier></FONT>&nbsp;<BR>
<FONT face=Courier>my question is whilst i can be informed of changes in my three groups, how do i have the email worded differently according to which group the request came from?&nbsp;how do i specify different notify statements in notify.php? is it something obvious?!</FONT><BR>
&nbsp;<BR>
<FONT face=Courier>thanks</FONT><BR>
&nbsp;<BR>
<FONT face=Courier>david</FONT>&nbsp;<BR>
<FONT face=Courier size=2>&nbsp;<BR></FONT></body>
</html>