Yes Paul there is. This is a simple edit, but it works.
Edit addjob.scp.php.
Find $mailto = "$txtUserEmail";
Change it to $mailto = "$txtUserEmail, pau...@ua...";
You can add as many recipients as you like separated by commas.
I have even modified my scripts so an email is sent to the user when ever an
event is added, that way they are notified whenever I update their ticket.
If you want that ability add the following to vj_addevent.scp.php after the
last occurrence of $mysqlresult = query($query); (It's near the bottom).
Watch for wrapped text below. Each line begins with $mailbody except for the
last two lines. They begin with "mail" and "print". To be safe, make backup
copies of these files before you modify them.
$mailto = "$t_useremail";
$mailsubject = "$g_title - Ticket #$t_id has been updated!";
$mailbody = "$t_userfirstname,\n\n";
$mailbody .= "Your Help Desk request has been updated. Below is a copy of
the updated information.\n\n";
$mailbody .= "Thanks,\n\n";
$mailbody .= "Mike\n";
$mailbody .= "x2323\n\n";
$mailbody .= "ORIGINAL
REQUEST\n-------------------------------------------------------------------
-----\n";
$mailbody .= "Division: $lstDepartment\n";
$mailbody .= "Category: $lstCategory\n";
$mailbody .= "Summary: $txtSummary\n";
$mailbody .= "Detail: $txtDetail\n";
$mailbody .= "Location: $txtLocation\n";
$mailbody .= "\n";
$mailbody .= "UPDATE\n";
$mailbody .=
"------------------------------------------------------------------------\n"
;
$mailbody .= "$txtDescription\n\n Time: $txtDuration hour(s)\n";
$mailbody .=
"------------------------------------------------------------------------\n"
;
$mailheader = "From: mik...@np...";
$mailbody = stripslashes($mailbody);
mail($mailto, $mailsubject, $mailbody, $mailheader);
print "<center>A receipt was sent to $t_userfirstname
$t_userlastname<BR></center>\n";
I've only been using phpHelpDesk for a few weeks and have found it to be an
excellent program. Thank you Joseph Hoot and the other developers for a
great work!
Mike
----- Original Message -----
From: "Paul Greidanus" <pau...@ua...>
To: <php...@so...>
Sent: Friday, June 28, 2002 9:32 AM
Subject: [Phphelpdesk-help] Automatic email send with ticket creation
> Is there a way to have phphelpdesk send emails when a ticket is created?
>
> I don't want to have to be checking the queue all the time to find out
> if there are any new tickets, when email would be much more effective..
>
> Thanks
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Caffeinated soap. No kidding.
> http://thinkgeek.com/sf
> _______________________________________________
> Phphelpdesk-help mailing list
> Php...@li...
> https://lists.sourceforge.net/lists/listinfo/phphelpdesk-help
|