+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 18

Thread: no_valid_recipients error message

  1. #1
    Join Date
    Jan 2004
    Posts
    4

    Default

    I'm recieving the following error:

    This error occurred in the script: no_valid_recipients
    **********
    Error=The form has an internal error - no valid recipients were specified.


    I've created a hidden field called recipients and put in my email addy. Like this:

    <input type="hidden" name="recipients" value="info@edenexcursions.com">

    The Target email part of the php code looks like this:
    $TARGET_EMAIL = array(info."@edenexcursions\.com$");


    I'm new to php and forms in general. Any suggestions?

    Thanks,
    Linda

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

    Default

    Hi Linda,

    Welcome to the FormMail forums.

    The line you need to fix is this one:
    Code:
    $TARGET_EMAIL = array(info."@edenexcursions.com$");
    Change it to:

    $TARGET_EMAIL = array("^info@edenexcursions.com$");*

    This says that your forms can send only to the single email address info@edenexcursions.com.

    PHP was seeing your line as referring to a constant called info, which doesn't exist.

    Please post again if you have any further difficulties.

  3. #3
    Join Date
    Jan 2004
    Posts
    4

    Default

    Thanks - I'm not getting that error anymore, now...

    *
    Parse error: parse error, expecting `')'' in /hsphere/local/home/fran58/edenexcursions.com/php/formmail.php on line 428



    This is what I've run into.* I've checked line 428 - it's commented out.* hsphere is the server, do I need to set permissions or something?* Like I said, this is new to me.

    Thanks,

    Linda


  4. #4
    Join Date
    Dec 2003
    Posts
    3,900

    Default

    Hi Linda,

    This is what I've run into. I've checked line 428 - it's commented out. hsphere is the server, do I need to set permissions or something? Like I said, this is new to me.
    That's OK.* It can be difficult to get the syntax of these lines exactly right.

    I've configured the $TARGET_EMAIL line for you in the attachment below.* Just upload this file and rename it to formmail.php and you should be ready to go.

    Good luck!
    Attached Files

  5. #5
    Join Date
    Jan 2004
    Posts
    4

    Default

    Hi Russell,

    OK, I see what I did, and I copied what you had under TARGET_EMAIL and pasted it in.

    It now looks like this:
    $TARGET_EMAIL = array("^info@edenexcursions\.com$");

    But, I'm still getting this error:

    This error occurred in the script: no_valid_recipients
    **********
    Error=The form has an internal error - no valid recipients were specified.

    It's strange, because I am getting the test data I put into the form sent to me in the email. However, when I submit the form, I get the 'problem with your submission' page I set up, and the error msg in the email along with the data.

    i.e. :

    This error occurred in the script: no_valid_recipients
    **********
    Error=The form has an internal error - no valid recipients were specified.

    title: 'Choose one'
    realname: 'linda'
    address: '3333 n 5th'
    city: 'mile'
    state: 'IL'
    zip: '55443'


    Thanks for your help,
    Linda

  6. #6
    Join Date
    Dec 2003
    Posts
    3,900

    Default

    The next step is to get the form (that's the .htm file that calls formmail) to specify the recipient.

    In your case, you have to specify the email address twice - once in formmail.php and once in the form itself.

    The line you need will look like this:

    Code:
    <input type="hidden" name="recipients" value="info@edenexcursions.com">
    If you're*using our sample form, then there should be a comment titled "STEP 3" directly above this line in the form.

    You're getting closer to getting this working! :)

  7. #7
    Join Date
    Jan 2004
    Posts
    4

    Default

    Yep, I had that. It all seems to be working ok now. I did upload the php file after I pasted your line of code, but maybe it didn't take or something. This time, I deleted it from the server and uploaded it again.

    Thanks for all your help,
    Linda

  8. #8
    Join Date
    Aug 2004
    Posts
    8

    Default Re: no_valid_recipients error message

    After following the threads closely I still get no_valid_recipients

    formmail.php
    Code:
      $TARGET_EMAIL = array(EMAIL_NAME."^jp@jptechnical\.com$");
     //
     // here are some other examples...
     //
    //$TARGET_EMAIL = array("^yourname@yourhost\.com$");
    //$TARGET_EMAIL = array("^yourname@yourhost\.com$","^someone@yourhost\.com$");
    //$TARGET_EMAIL = array(EMAIL_NAME."@yourhost\.com$",EMAIL_NAME."@otherhost\.com$");
     //
     // ** OPTIONAL BUT STRONGLY RECOMMENDED **
     // Set DEF_ALERT to the email address that will be sent any alert
     // messages (such as errors) from the script.  This value is
     // only used if the 'alert_to' is not provided by the form.
     // If neither alert_to nor DEF_ALERT are provided, no alerts are sent.
     //
     // DEF_ALERT can be any email address and it's independent of
     // the TARGET_EMAIL setting.
     //
     // Example:
     //  webmaster@yourhost.com
     //
     // If you set DEF_ALERT, you can do some initial tests with your browser.
     // Just open this URL:
     //  http://www.your-site.com/formmail.php?testalert=1
     //
    define("DEF_ALERT","jp@jptechnical.com");
    sampleform.html
    Code:
      <!-- STEP 1: Put the full URL to formmail.php on your website in the 'action' value. -->
    <form method="post" action="http://childcareconnection.org/forms...l/formmail.php" name="SampleForm">
    	<input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER">
    	<!-- STEP 2: Put your email address in the 'recipients' value. -->
    	<input type="hidden" name="recipients" value="jp@jptechnical.com">
    	<!-- STEP 3: Specify required fields in the 'required' value -->
    	<input type="hidden" name="required" value="email:Your email address,realname:Your name">
    	<!-- STEP 4: Put your subject line in the 'subject' value. -->
    	<input type="hidden" name="subject" value="Sample FormMail Testing">
    Please tell me what I am missing???

    I tested the testmail and testmail2.php with no problems.

    I get the error logs but no forms.

  9. #9
    Join Date
    Dec 2003
    Posts
    3,900

    Default Re: no_valid_recipients error message

    Hi,

    I can imagine that's incredibly frustrating for you.

    From what you've posted, everything looks exactly right.

    So, could you please send your form and your formmail.php to me attached to an email. Address: supportstaff AT tectite DOT com.

    There will be an answer, I'll just need to see the actual code.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  10. #10
    Join Date
    Aug 2004
    Posts
    8

    Default Re: no_valid_recipients error message

    I sent it. Thanks aolt!

+ 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. keep getting no_valid_recipients error
    By nurblet in forum FormMail Subscription Support
    Replies: 2
    Last Post: 28-Dec-2004, 09:22 PM
  2. no_valid_recipients error
    By tubaguy0 in forum FormMail Subscription Support
    Replies: 3
    Last Post: 13-Aug-2004, 11:44 PM
  3. FormMail Script Error Message
    By rose in forum FormMail Subscription Support
    Replies: 2
    Last Post: 27-Jun-2004, 05:59 AM
  4. Error Message on Optus
    By paf in forum FormMail Subscription Support
    Replies: 6
    Last Post: 12-Jan-2004, 12:43 PM
  5. Error Message
    By cuffs in forum FormMail Subscription Support
    Replies: 4
    Last Post: 11-Jan-2004, 05:42 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