BOARDS

planetluc.com discussion board

all about the planetlu.com scripts

You are not logged in.

Announcement

I had to clean the boards due to massive spam. Actually i deleted everything /-one after 1st Oct 2008. It was the only way to get this spam out of the boards. So i'm sorry for all serious users who registered/posted meanwhile.

#1 06-03-2006 16:15:27

nakedLefty
New member
From: SE
Registered: 17-12-2005
Posts: 7
Website

Multiple recipients

Is there anyway to set up the otherwise nice and simple contact form script to “contain” multiple recipients?
As in a “drop-down-list” of people, ie. different bands members in a band to whom one could send an email ?


Thanks in advance,
nakedLefty

Offline

 

#2 06-03-2006 16:23:00

admin
Administrator
From: Winterhur, Zurich, Switzerland
Registered: 25-11-2004
Posts: 462
Website

Re: Multiple recipients

Yes you can:
Create a select list something like:

Code:

$fields[] = array("Recipient", "recipient", "select", "{-- please choose --}{dirtyjoe@band.com}{fatalex@band.com}{uglyben@band.com}", "*", "Please select a recipient");

Then modiefie line 142 from

Code:

mail($targetAddress, $emailSubject, $message, $fromAddress);

to

Code:

mail($_REQUEST['recipient'], $emailSubject, $message, $fromAddress);

Offline

 

#3 06-03-2006 16:27:03

nakedLefty
New member
From: SE
Registered: 17-12-2005
Posts: 7
Website

Re: Multiple recipients

Thanks, I'll get all over that like white on rice :)


Best regards,
nakedLefty

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

 
 
© 2003-2010 by planetluc.com · Bachtelstrasse 104 · CH-8400 Winterthur | Support | Login |