Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Conditional Email

Status
Not open for further replies.

d0nny

IS-IT--Management
Dec 18, 2005
278
GB
Earlier, I asked about storing checkbox values which I got help on in the mySQL forum. Basically, these checkboxes store values for different departments in the business and users select areas on which they are interested in.
The HR people now want an email to be sent to the department head when the relavent checkbox is selected.

I have already included two email sections in my script which send a confirmation email to the user completing the form and also to the HR people, but I now need to send a conditional email to one or many department heads depending on which checkboxes are selected.
Jees! Any ideas?
 
use isset() on the checkbox to determine what you need to do.

to send emails use phpmailer, it's materially more straightforward to use than mail() for anything above very basic text based emails.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top