4 Replies - 454 Views - Last Post: 02 May 2013 - 02:25 PM

#1 OllieSmile  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 02-May 13

Trying to get emails sent to the correct department :S

Posted 02 May 2013 - 02:10 PM

In short basically, I want the viewer to select an option on the contact form, and then for whatever the message is to go to the relevant department. I.e Webmaster to Webmaster, Exhibition details to whoever. Now how on earth do I do this?

I have read stuff about making PHP scripts, and using switches. But where on earth do I start?!

HELP! :helpsmilie:

Is This A Good Question/Topic? 0
  • +

Replies To: Trying to get emails sent to the correct department :S

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8364
  • View blog
  • Posts: 31,077
  • Joined: 12-June 08

Re: Trying to get emails sent to the correct department :S

Posted 02 May 2013 - 02:14 PM

Yup.. I would make a php script..

The gist would be the user fills out the form, picks what ever branch, etc.. and the 'submit' button pushes the data (and choice on department) back to the server which polls the database on what is the right email address, and sends the email. This means you just need to update the database table when there's an email-to-job connection change!

As for where to start.. er.. well you need to know PHP, something like MYSQL, how to connect PHP to a database, how to send emails in PHP, and HTML forms (and how those can call a PHP file).
Was This Post Helpful? 1
  • +
  • -

#3 OllieSmile  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 02-May 13

Re: Trying to get emails sent to the correct department :S

Posted 02 May 2013 - 02:18 PM

Thank you, in short I'm stuffed LOL the only parts i know about are "emails in PHP, and HTML forms" :S
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8364
  • View blog
  • Posts: 31,077
  • Joined: 12-June 08

Re: Trying to get emails sent to the correct department :S

Posted 02 May 2013 - 02:22 PM

Gotta start somewhere, right?
Was This Post Helpful? 0
  • +
  • -

#5 OllieSmile  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 02-May 13

Re: Trying to get emails sent to the correct department :S

Posted 02 May 2013 - 02:25 PM

Yep. Thank you, I might be back soon screaming (polity) asking for help :stupid:/>
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1