cancel
Showing results for 
Search instead for 
Did you mean: 

Formmail Modifications?

kimm
Not applicable
Posts: 2
Registered: ‎21-11-2007

Formmail Modifications?

Hello, does anyone know if it's possible to modify the formmail script so that if a user selects an item from a dropdown it sends the email to a particular email address (e.g. selecting 'orders' sends to orders@domain.co.uk, selecting 'design' sends to design@domain.co.uk)
If this is possible can anyone provide some idiot proof steps to acheiving this (and I mean idiot proof - it's a long time since I built a website and my brain is truly melted!)
Thank you  Smiley
1 REPLY 1
SkySurfer
Dabbler
Posts: 15
Registered: ‎03-04-2010

Re: Formmail Modifications?

Hi Kimm,
Yes, it can be done Smiley
You need to change the "recipient" part of the script to be something like the example below
<SELECT NAME="recipient">
<OPTION value="dave@domain.com">Orders</OPTION>
<OPTION value="pete@domain.com">Service</OPTION>
<OPTION value="fred@domain.com">Admin</OPTION>
</SELECT>
That should do it....
Also, have a look here for further help on configuring the script
http://www.scriptarchive.com/formmail.html