+ Reply to Thread
Results 1 to 2 of 2

Thread: Is the recipients field required in html form?

  1. #1
    Join Date
    Jun 2005
    Location
    colorado
    Posts
    1

    Default Is the recipients field required in html form?

    Is the recipients field required in html form?

    Is it really necessary to include an email in the html form? I've been using Jack's FormMail.php Script for a year and a half and instead of exposing my email to spammers in an html form, I would pull the email from the database inside the actual FormMail.php script.

    Now with the TectTite formmail.php script I made a connection to the database in the formmail.php file, spit my email into the $TARGET_EMAIL, DEF_ALERT, and $FROM_USER variables. However when I run the sample form with no recipients, I get an error.

    Is the hidden recipients field really required? Is there anyway around this? What's the solution?

  2. #2
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: Is the recipients field required in html form?

    Hi,

    If you want FormMail to send email containing your form results, then you need to set "recipients".

    To protect it from spammers, use the AT_MANGLE feature.

    Now with the TectTite formmail.php script I made a connection to the database in the formmail.php file, spit my email into the $TARGET_EMAIL, DEF_ALERT, and $FROM_USER variables.
    If you really want to, you can set those variables that way (after the configuration section). But you also need to put the email address into the posted data, like this:

    PHP Code:
    $aFormVars["recipients"] = $YourVariableName
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Sample HTML Form Using FormMail
    By russellr in forum FormMail
    Replies: 1
    Last Post: 21-Mar-2007, 07:49 AM
  2. recipients error
    By mike.2004 in forum FormMail Subscription Support
    Replies: 3
    Last Post: 30-Mar-2004, 11:36 PM
  3. required field error
    By Ibis in forum FormMail Subscription Support
    Replies: 18
    Last Post: 02-Mar-2004, 10:04 AM
  4. No valid recipients
    By Oktopuz in forum FormMail Subscription Support
    Replies: 2
    Last Post: 06-Feb-2004, 06:48 AM
  5. required does not work ?!
    By flynst4r in forum FormMail Subscription Support
    Replies: 9
    Last Post: 26-Jan-2004, 10:04 PM

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