+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 17 of 17

Thread: no_valid_recipients

  1. #11
    Join Date
    May 2008
    Posts
    1,274

    Default Re: no_valid_recipients

    Are you using an ini file by any chance?

    ginger

  2. #12
    Join Date
    Jul 2008
    Posts
    18

    Default Re: no_valid_recipients

    I'm not using an .ini file.
    Just to confirm, I tested the sampleform on another site and it works, but there was no error handling on it. So this means it does work on my host, but for some reason its not when I am using error handling.

    Cheers
    m

  3. #13
    Join Date
    May 2008
    Posts
    1,274

    Default Re: no_valid_recipients

    The only thing I can see on your form is that you have different values for the "id" and "name" for the "realname" and "message" fields.

    You might try making those the same and see if it makes a difference.

    ginger

  4. #14
    Join Date
    May 2008
    Posts
    1,274

    Default Re: no_valid_recipients

    Did you try the sample form provided by tectite on another site, or did you test the form you've shown here (same exact code except for advanced error handling) on another site?

    Also, did you set $TARGET_URLS in both scripts?

    ginger
    Last edited by ginger23; 21-Jul-2008 at 09:04 PM.

  5. #15
    Join Date
    Jul 2008
    Posts
    18

    Default Re: no_valid_recipients

    Hi.
    Would you believe it, my host turned PHP safe mode off and it seems to be working. The one we were discussing is anyway.

    My last form to get working is more of a HTML form issue I think.
    I am getting the following error email:

    Code:
    The following error occurred in FormMail :
    Template "contacttemplate.html" caused the following errors :
    "sampletype" is not a field submitted from the form 
    "ifother" is not a field submitted from the form 
    "keepinformed" is not a field submitted from the form
    The form fields are:

    HTML Code:
            <tr>
              <td height="32">&nbsp;</td>
              <td><span class="style6">
                <input name="keepinformed" type="checkbox" id="keepinformed" value="send info" />
                Please keep me up-to-date about Warmawood
                <label> </label>
                </span> <span class="style9">
                <label> </label>
                </span><span class="style7">
                <label></label>
                </span>
                <label></label></td>
            </tr>
            
    <tr>
              <td height="40" class="formText"><p class="style15">REQUEST SAMPLES<br />
                <br />
              (CTRL-click to choose more than one)</p>
                </td>
              <td class="formText"><p>
                <label></label>
                <label>
                <select name="sampletype" size="5" multiple="multiple" id="sampletype">
                  <option value="Natural_Un_Finished">Natural Un-Finished</option>
                  <option value="Natural_Pre_Finished">Natural Pre-Finished</option>
                  <option value="Stained">Stained</option>
                  <option value="Distressed">Distressed</option>
                  <option value="Distressed_and_Fumed">Distressed &amp; Fumed</option>
                  <option value="Distressed_and_Stained">Distressed &amp; Stained</option>
                  <option value="Jacobean">Jacobean</option>
                  <option value="Fumed">Fumed</option>
                  <option value="Limed">Limed</option>
                      </select>
                </label>
              </p>
                <p><br />
                  </p></td>
            </tr>
            
                    <tr>
              <td height="40" class="formText"><span class="style15">REQUEST A BROCHURE</span></td>
              <td class="formText"><label>
              <input name="brochureyes" type="checkbox" id="brochureyes" value="send-brochure" checked="checked" />
              <span class="style15">YES, PLEASE </span></label></td>
            </tr>
    I wonder if I need to format these fields differently so they are accepted.
    Any thoughts?

    Cheers

  6. #16
    Join Date
    May 2008
    Posts
    1,274

    Default Re: no_valid_recipients

    Well, I don't see a field called "ifother", but as far as the other two, the important thing is that any "value" comes after "type" and "name".

    If you want, you can reverse the "name" and "type" for "keepinformed" and see if it makes a difference.

    Also, you should use "sampletype[]" since it's a field that accepts multiple values. In your email, any multiple values for a specific field will be separated by a comma.

    Any fields you specify in the template must be either be required to make sure that they're filled in, or you need to define a value for TemplateMissing in the mail_options field.

    HTML Code:
    <input type="hidden" name="mail_options" value="HTMLTemplate=yourtemplate.html,TemplateMissing=" />
    That will just leave a blank for any unfilled fields. If you wanted something else in unfilled fields, you could put something like "TemplateMissing=n/a" which would put n/a for any field that's not filled in.

    You are putting the dollar sign in front of the field name in the template aren't you?
    Code:
    $keepinformed <br />
    $sampletype[] <br />
    $brochureyes <br />
    ginger

  7. #17
    Join Date
    Jul 2008
    Posts
    18

    Default Re: no_valid_recipients

    Great, it works now. Thanks for all your help Ginger.

    Cheers
    M

+ 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. no_valid_recipients
    By bom1304 in forum FormMail Subscription Support
    Replies: 2
    Last Post: 24-Mar-2005, 11:01 AM
  2. no_valid_recipients + Charset error
    By sutra in forum FormMail Subscription Support
    Replies: 3
    Last Post: 06-Mar-2005, 12:54 AM
  3. keep getting no_valid_recipients error
    By nurblet in forum FormMail Subscription Support
    Replies: 2
    Last Post: 28-Dec-2004, 09:22 PM
  4. no_valid_recipients error
    By tubaguy0 in forum FormMail Subscription Support
    Replies: 3
    Last Post: 13-Aug-2004, 11:44 PM
  5. no_valid_recipients error message
    By edenexcursions in forum FormMail Subscription Support
    Replies: 17
    Last Post: 06-Aug-2004, 01:39 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