Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: Email error message - "no_valid_recipients"

  1. #1
    Join Date
    Sep 2009
    Posts
    48

    Default Email error message - "no_valid_recipients"

    This is the first form I have done using the php form mail.

    I keep getting this error message when form is submitted.

    Can anyone help.

    To: mick.bullous@inbox.com
    From: FormMail@www.emstravel.co.uk

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


    email: fred@bloggs.com
    realname: Fred Bloggs

    company: 'Bloggs and Co'
    tel: '0700000000'
    comments: 'This is a test message to see if the form works'
    Referring page was http://www.emstravel.co.uk/contact_form.htm
    SERVER_NAME was www.emstravel.co.uk
    REQUEST_URI was /formmail.php?<?php%20if%20(defined(

    Settings below


    <form method="POST" action="http://www.emstravel.co.uk/formmail.php?<?php if (defined("SID")) echo SID; ?" name="FrontPage_Form1" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript">
    <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER" />

    <input type="hidden" name="recipients" value="mick.bullous@inbox.com" />

    <input type="hidden"name="required"value="name:,email:,tel:,subject:,comments:," /> value="name:,email:,tel:,subject:,comments:," />

    <input type="hidden" name="subject" value="Contact Form Web Enquiry" />

    <input type="hidden" name="good_url" value="http://www.esmtravel.co.uk/_private/...t_thankyou.htm" />

    <input type="hidden" name="autorespond" value="PlainTemplate=autoresponse_email.txt,Subject=Thanks for submitting your enquiry!,TemplateMissing="



    /* Help: http://www.tectite.com/fmdoc/email_name.php */
    define("EMAIL_NAME","^[-a-z0-9.]+"); // the '^' is an important security feature!
    /* Help: http://www.tectite.com/fmdoc/target_email.php */
    $TARGET_EMAIL = array(EMAIL_NAME."^mick.bullous@inbox.com$");
    /* Help: http://www.tectite.com/fmdoc/def_alert.php */
    define("DEF_ALERT","mick.bullous@inbox.com");
    Last edited by Mickyboy; 04-Sep-2009 at 07:06 PM. Reason: updated. Made correction after 1st response

  2. #2
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Email error message - "no_valid_recipients"

    here's ur problem:
    PHP Code:
    $TARGET_EMAIL = array(EMAIL_NAME."mick.bullous@inbox.com$"); 
    u want either:
    PHP Code:
    $TARGET_EMAIL = array(EMAIL_NAME."@inbox.com$"); 
    or

    PHP Code:
    $TARGET_EMAIL = array("^mick.bullous@inbox.com$"); 
    just like the examples in the documetnation show.

  3. #3
    Join Date
    Sep 2009
    Posts
    48

    Default Re: Email error message - "no_valid_recipients"

    Thanks...I have made the change but it still does the same. Any ideas

  4. #4
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Email error message - "no_valid_recipients"

    u cant have made the change correctly and get the same error

    did u upload to the right place?

  5. #5
    Join Date
    Sep 2009
    Posts
    48

    Default Re: Email error message - "no_valid_recipients"

    I have uploaded to the public html file.

    I have definatly put the ^ in the correct place. I have never used php so please bear with me.

    Also if you look at the source code of www.emstravel.co.uk/contact_form.htm i have added a code to the top of the page.

    This code causes a problem in IE. It sends the page to the left. Is it required?

    It does not happen in firefox though.

    I put it there because it was at the top of the sample i looked at.

    Can you please advise.

    Also... I have added a hidden field in the form "good_url" and given it a value of the confirmation page. Will this actually send the user to the page address on a form submit?

    Sorry to be a pain but i have been trying to sort this all day.


    What I am trying to achieve is:

    The user fills in the form.

    On submit
    • The user gets sent to the confirmation page.
    • They also get sent an automatic email that's in a txt.file that I have saved.
    All help is gladly welcome and I'm very gratefull... Thanks

  6. #6
    Join Date
    Sep 2009
    Posts
    48

    Default Re: Email error message - "no_valid_recipients"

    This is what I got when doing a test

    To: mick.bullous@inbox.com
    From: FormMail@www.emstravel.co.uk

    This is a test alert message
    Loaded language is English (builtin)
    PHP version is 4.4.9
    FormMail version is 8.16
    Server type: non-Windows

    DOCUMENT_ROOT: /home/z24emst/public_html
    SCRIPT_FILENAME: /home/z24emst/public_html/formmail.php
    PATH_TRANSLATED: -not set-
    REAL_DOCUMENT_ROOT: /home/z24emst/public_html



    SERVER_NAME was
    www.emstravel.co.uk
    REQUEST_URI was /formmail.php?testalert=1

  7. #7
    Join Date
    Jun 2009
    Location
    Houston
    Posts
    378

    Post Re: Email error message - "no_valid_recipients"

    You still have an error in your Target_Email setting. Make sure it is exactly as below:

    Code:
    $TARGET_EMAIL = array("^mick.bullous@inbox\.com$"); 

  8. #8
    Join Date
    Sep 2009
    Posts
    48

    Default Re: Email error message - "no_valid_recipients"

    Thanks for that. I have just spotted that and rectified it.

    Still got errors when the form is submitted the page that comes up is a webpage that cannot be found

  9. #9
    Join Date
    Sep 2009
    Posts
    48

    Default Re: Email error message - "no_valid_recipients"

    I now get the form details but I get sent to a page that cannot be displayed.

    I also get this error message

    To: mick.bullous@inbox.com
    From: FormMail@www.emstravel.co.uk

    The following error occurred in FormMail :
    Failed to open template "
    http://www.emstravel.co.uk/autoresponse_email.htm,http://emstravel.co.uk/_private/autoresponse.txt/autoresponse_email.txt?USER_AGENT=Mozilla%2F4.0+%28compatible%3B+MSIE+8.0%3B+Windows+NT+6.0%3B+Trident%2F4.0%3B+SU+3.23%3B+SLCC1%3B+.NET+CLR+2.0.50727%3B+.NET+CLR+3.5.30729%3B+.NET+CLR+3.0.30618%29&PHPSESSID=63ee85810c221270145003e9a76c4957" : failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found



    email:
    mick.bullous@inbox.com
    realname: Fred Bloggs

    company: ''
    tel: '07784841366'
    comments: 'Test this form'
    Referring page was
    http://www.emstravel.co.uk/contact_form.htm
    SERVER_NAME was www.emstravel.co.uk
    REQUEST_URI was /formmail.php?<?php%20if%20(defined(

    User IP address was 94.2.64.230
    User agent was Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SU 3.23; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30618)

  10. #10
    Join Date
    Jun 2009
    Location
    Houston
    Posts
    378

    Post Re: Email error message - "no_valid_recipients"

    Your form is messed up. Change
    Code:
    <formmethod="POST" action="http://www.emstravel.co.uk/formmail.php?<?php if (defined("SID")) echo SID; ?" name="FrontPage_Form1" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript">
    To
    Code:
    <form method="post" action=http://www.emstravel.co.uk/formmail.php name="FrontPage_Form1">
    You can get rid of the stuff you added to the top of the form.

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 error message
    By edenexcursions in forum FormMail Subscription Support
    Replies: 17
    Last Post: 06-Aug-2004, 12:39 AM
  2. Spiders and "The form has an internal error"
    By russellr in forum FormMail Subscription Support
    Replies: 0
    Last Post: 13-May-2004, 09:11 PM
  3. Email contains no "mesg"
    By xuric in forum FormMail Subscription Support
    Replies: 1
    Last Post: 19-Apr-2004, 08:17 PM
  4. Error Message on Optus
    By paf in forum FormMail Subscription Support
    Replies: 6
    Last Post: 12-Jan-2004, 11:43 AM
  5. Error Message
    By cuffs in forum FormMail Subscription Support
    Replies: 4
    Last Post: 11-Jan-2004, 04: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
  •