
moon_rabbit
Deleted
Jul 21, 2000, 2:01 PM
Post #2 of 2
(165 views)
|
|
Re: Multiple email recips from drop down?
[In reply to]
|
Can't Post
|
|
This is really just an HTML question: The drop-down box: <SELECT NAME="email" MULTIPLE> <OPTION VALUE="person1@somewhere.com">Person 1 <OPTION VALUE="person2@somewhere.com">Person 2 <OPTION VALUE="person3@somewhere.com">Person 3 </SELECT> Then do the following in the cgi script after you have parsed the data and opened MAIL and printed the Content-type line (an example, you might have different variable names): print "To: $formdata{'email'}\n"; If you use the MULTIPLE attribute in the SELECT tag, the $formdata{'email'} will consist of one or more addresses separated by commas, which works for sending multiple messages. I suspect that there are some serious security issues with this type of setup, since it requires that the user must be able to enter more than one @ in the email field. Probably not a good idea. [This message has been edited by moon_rabbit (edited 07-21-2000).] [This message has been edited by moon_rabbit (edited 07-21-2000).]
|