From: <JFe...@ao...> - 2001-12-08 20:16:14
|
Hello, I work for a medium sized school system and I am trying to customize phphelpdesk to better suit our needs. I have setup my departments to represent each school. I would like to automatically send an email to each principal of the school/department whenever a ticket is opened for thier school. I don't want this to be a user available option. Just something that happens behind the scenes. Here's what I've done so far: 1. Bought a PHP book 2. Created a column called " t_adminemail " in the TABLE " ticket " inside my database. It is indentical to the " t_useremail " used in the file addjob.scp.php 3. What I need to know now is how to write a statement that is something like this: IF $l_deparmtent = Jones High School, THEN $mailto=pri...@jo... IF $l_deparmtent = Smith Elementary School, THEN $mailto=pri...@sm... See what I'm trying to do? I'm very new to PHP so any help is greatly appreciated. Please remember to reply in newbie language since I'm not a programmer by default. I also want to Thank everyone who has helped to create this terrific tool. Our school's are not wealthy and a free option was our only hope. Thank you very much! Sincerely, John Ferrell |