Submit a FormMail to Multiple Recipients

  • ALD777
  • Newbie
  • Newbie
  • ALD777
  • Posts: 11

Post 3+ Months Ago

Hello everyone!

I am trying to figure out how to do a specific form function.

I am use to sending/submitting forms. I use FormMail.pl to gather client information, such as, name, program of interest, email address, phone, etc.

Upon submitting the form, these values will then be emailed to the client and/or anyone else I add to the FormMail.pl... but that is is the end of my FormMail knowledge.

My query is this: How would I make a FormMail submit to separate people/locations

For instance:


Campus #1 is selected in Form - the email is sent to Dave
Campus #2 is selected in Form - the email is sent to Bob
Campus #3 is selected in Form - the email is sent to Marry
Campus #4 is selected in Form - the email is sent to Josh
Campus #5 is selected in Form - the email is sent to Karen

Do I add a function into the form (html) itself or to the FormMail Document?

Is this something that would be considered difficult or is it a quick fix?

Thank in advance!
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Travis Coats
  • Graduate
  • Graduate
  • Travis Coats
  • Posts: 107

Post 3+ Months Ago

I am not the best in the world at scripting but I have a question:

1. Does the .pl script have the email address set in it statically or is it a variable passed by the form?

-If so (variable) you can use javascipt to get the value of the selected campus and then, for security use php to hard code matching values/variable which contain the email addresses. In this way viewing source code won't reveal these emails. Of course this is only a suggestion, but maybe based on it someone can make it clearer. I could possibly work out the Javascript, but the PHP part is over my head - code-wise, but not idealistically.

I would assume you would use an else if statement to check the emails and then pass this variable through Java into the select list - OR you COULD use only PHP and make the selection dynamic based on var value pairs that you set from the start. This way you don't need Java.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 100 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.