Results 1 to 2 of 2

Thread: Multiple recipients with checkboxes

  1. #1
    Join Date
    Oct 2008
    Posts
    5

    Unhappy Multiple recipients with checkboxes

    How do i configure the formMail script to accept multiple recipients using checkboxes?

  2. #2
    Join Date
    Feb 2007
    Posts
    72

    Default Re: Multiple recipients with checkboxes

    Hello

    Formmail is a nice mail script, but it does take a little imagination and creativity to do fancy tricks.

    You can try something like this for your checkboxes:
    Code:
    Sales Contact
    <input name="sales" type="checkbox" id="sales" value="salesMANGLEyourhost.com," />
    <br />
    Marketing Contact
    <input name="marketing" type="checkbox" id="marketing" value="marketingMANGLEyourhost.com," />
    <br />
    Support Contact
    <input name="support" type="checkbox" id="support" value="supportMANGLEyourhost.com" />
    2 points to notice here.
    #1: I used the MANGLE instead of the @ sign in the addresses. If you need further explanation about this then please refer to the documentation on this site.
    #2: I added a comma after the first and second address since the comma is needed to separate the addresses when more then one is selected. Notice i did not use a comma on the last address, because it won't be needed.

    Next would be to create/use the derive_fields feature in formmail

    Code:
    <input name="derive_fields" type="hidden" value="recipients=sales.marketing.support" />
    This will join the selected addresses together for the recipients field.
    I am very sure this will do what you request.

    have fun with it
    Nelson

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Selectable Recipients?
    By clicker in forum FormMail Subscription Support
    Replies: 3
    Last Post: 08-Apr-2004, 10:18 AM
  2. no valid recipients were specified.
    By SonSon in forum FormMail Subscription Support
    Replies: 3
    Last Post: 08-Apr-2004, 07:27 AM
  3. no Action or recipients
    By Lars Arvoe in forum FormMail Subscription Support
    Replies: 7
    Last Post: 05-Apr-2004, 07:13 AM
  4. recipients error
    By mike.2004 in forum FormMail Subscription Support
    Replies: 3
    Last Post: 30-Mar-2004, 10:36 PM
  5. No valid recipients
    By Oktopuz in forum FormMail Subscription Support
    Replies: 2
    Last Post: 06-Feb-2004, 05:48 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •