We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10357
    • 573 Posts
    Hi,

    I want to be able to send the contents of a form to an email address chosen in a list box:

    so everything works fine like this:

    <select name="nature" eform="Nature of enquiry:listbox:1">
          <option value="[email protected]">Media and PR enquiries</option>
           <option value="[email protected]">Wholesale enquiries </option>
          <option value=""[email protected]">Advice centre</option>
          <option value=""[email protected]">Dispatch</option>
    </select>


    but, this is obviously very good for spam robots, is there anyway i could hide the email addresses somehow?

    thanks.
    Gareth
      • 30223
      • 1,010 Posts
      From the documentation

      &mailselector (Optional)
      Sets the name of the form field to use as a selector to select a single email from the comma (,) delimited emails assigned the &toparameter. This selector field will act like a numeric index to select an email. It will start at 1 for the first email and ends at N for the last email in the list.

      For example: &to =`[email protected],[email protected],[email protected]` &mailselector=`topic`

      <select name="nature" eform="Nature of enquiry:listbox:1">
            <option value="1">Media and PR enquiries</option>
             <option value="2">Wholesale enquiries </option>
            <option value=""3">Advice centre</option>
            <option value=""4">Dispatch</option>
      </select>
      


      [!eForm? &mailselector=`nature` &to=`[email protected],[email protected],[email protected],[email protected]` .... !]

        • 10357
        • 573 Posts
        thanks so much, i knew eform would have this built in grin

        sorry, i had read all the documentation but did not really get what &mailselector was for.