Using Formmail.php and trying to select multiple recipients

This is a discussion on Using Formmail.php and trying to select multiple recipients within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi! Total "newbie to programming" here. I'm using Jack's Formmail.php, code at: http://www.dtheatre....


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-19-2005
Maggie Blue
 
Posts: n/a
Default Using Formmail.php and trying to select multiple recipients

Hi! Total "newbie to programming" here.

I'm using Jack's Formmail.php, code at:
http://www.dtheatre.com/scripts/sour.../formmail.phps

and I'm trying to figure out how I can have it send an identical message to
more than one recipient, based on a checkbox selected by the user who
submits the form.


<input type="checkbox" name="email1" value="recipient1" />Recipient 1
<input type="checkbox" name="email2" value="recipient2" />Recipient 2
<input type="checkbox" name="email3" value="recipient3" />Recipient 3

where "recipient[n]" is stored in the script:

"recipient1" = "email1@email.com"
"recipient2" = "email2@email.com"
"recipient3" = "email3@email.com"

If the user checks recipient1 AND recipient3, it would send the message to
both of the above e-mail addresses.

Is there a script out there that could do this better?
Any help you can give me would be very helpful!

Thanks so much,
Maggie


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:20 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0