|
| A R C H I V E D M E S S A G E |
|
Subject: Multiple Email array |
| Posted: 02/03/2004 at 11:15:35 am |
| By: tialogans |
| Is there away to have a dropdown box or radio button pick who the email will be sent to. Like on the form I'll have the name "joe" and if the dropdown box picks him it will be sent to sendto(3) ? | |
|
|
Subject: Re: Multiple Email array |
| Posted: 02/03/2004 at 11:21:17 am |
| By: Seth Knorr |
| sure. Just do.
<select name="send_to">
<option value="1">Sales</option>
<option value="2">Support</option>
<option value="3">Billing</option>
</select>
ETC....
And just cofigure your bizmail.cgi or .pl accordingly.
Seth
| |
|
|
Subject: Re: Multiple Email array |
| Posted: 02/03/2004 at 11:59:13 am |
| By: tialogans |
|
|
Subject: Re: Multiple Email array |
| Posted: 02/05/2004 at 9:32:51 pm |
| By: tialogans |
| Hi! It is not working correctly. They are not getting their emails but the cc address in the form is. Am I doing something wrong?
<select name="sendto">
<option value="4" selected>Andrew</option>
<option value="6">Patricia</option>
</select> | |
|
|
Subject: Re: Multiple Email array |
| Posted: 02/06/2004 at 5:51:19 am |
| By: Seth Knorr |
| Actualy it needs to look like this (don't forget the underscore):
<select name="send_to">
<option value="4" selected>Andrew</option>
<option value="6">Patricia</option>
</select>
Well with what you have above this would mean in bizmail.cgi you would have lines:
$sendto{"4"} = "andrew\@somewhere.com";
$sendto{"6"} = "patricia\@somewhere.com";
These should be configured in the bizmail.cgi and you should be all set.
Seth
| |
|
|
Subject: Re: Multiple Email array |
| Posted: 02/06/2004 at 8:22:26 am |
| By: tialogans |
| Thanks! That's what I had forgot :( | |
|
|