Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Newbie cant work this out, Receive email but browser says prob

  1. #1
    Join Date
    Jun 2006
    Posts
    5

    Default Newbie cant work this out, Receive email but browser says prob



    Part 1 I download the formmail.php edited it in Notepad and did the test alert, Fine no problems, the test email gets sent.

    can someone please clarify the following (simply as I am not a programmer but just dabble the odd time when needed)
    Forum documentation says $TARGET_EMAIL = array("^jack@smithy\.org$"); so in my case I would use soemthing like
    "$TARGET_EMAIL = array(^tom@kinleygroup\.com$);
    BUT
    in the help text in the actual formmail.php it says to "repalce yourhost\.com" with your mail server's name)" which i am told is mail.kinleygroup.com


    Part 2 I downloaded the sampleform.txt,
    1) Put the full address of the formmail.php addess in the action value
    2) put the email address that I want the results to go to in the 'recipeints' value
    3)did not change the default values for the required values- i.e. I did not edit that line
    4)left subject title as default, i.e. I did not edit that line either
    Hence I only edited steps 1 & 2 for the sample form.

    Bottom line is that the form does send an email but the browser sees an error displayed ?
    form is here www.kinleygroup.com/contact.htm and my default one from this site is at www.kinleygroup.com/sampleform.htm

    Anyways I am off to pull my hair out and stick pins in my eyes,
    appreciate any help ,
    Thanks,
    Tom

  2. #2
    Join Date
    Jun 2006
    Posts
    5

    Default Re: Newbie cant work this out, Receive email but browser says prob

    ok so its telling me thatr the form has an internal error i.e. i have no valid recipeints WTF?

    I downloaded the sampleform and changed the recipients value to the address I want it to go to, again I get the email but the viewer sees an error after submitting. This is so frustrating, I suppose I am now meant to sign up for the paid support to resolve this.

    Please any info is muchly appreciated,
    Thanks,
    Tom

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

    Default Re: Newbie cant work this out, Receive email but browser says prob

    Hi,

    Quote Originally Posted by tom182


    "$TARGET_EMAIL = array(^tom@kinleygroup\.com$);
    this is correct, but dont forget the quotes!

    [/quote]
    BUT
    in the help text in the actual formmail.php it says to "repalce yourhost\.com" with your mail server's name)" which i am told is mail.kinleygroup.com
    terminology is slighlt askew. probably should say "domain name" instead of "mail server name".


    Bottom line is that the form does send an email but the browser sees an error displayed ?
    form is here www.kinleygroup.com/contact.htm and my default one from this site is at www.kinleygroup.com/sampleform.htm
    the sampleform shows an error and says it alerted you. what does the alert say ?

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

    Default Re: Newbie cant work this out, Receive email but browser says prob

    Quote Originally Posted by tom182
    ok so its telling me thatr the form has an internal error i.e. i have no valid recipeints WTF?

    I downloaded the sampleform and changed the recipients value to the address I want it to go to, again I get the email but the viewer sees an error after submitting. This is so frustrating, I suppose I am now meant to sign up for the paid support to resolve this.
    if youve put a valid email address in recipients (which your sample for seems to have), then it's just your setting of $TARGET_EMAIL.

    you seem to be close with it. just copy one of the many examples near that setting in formmail.php

  5. #5
    Join Date
    Jun 2006
    Posts
    5

    Default Re: Newbie cant work this out, Receive email but browser says prob

    Crabtree, thanks for your help.

    This si the error I am getting
    The following error occurred in FormMail :
    no_valid_recipients
    **********
    Error=The form has an internal error - no valid recipients were specified.


    I have attached a screengrab of the lines I modified in the formmail.php (using notepad) can you reccommend one that cna list the line numbers-preferably freeware ),


    http://www.kinleygroup.com/wtf.jpg

    Hopefully I have missed something basic-
    thanks,
    Tom
    Last edited by tom182; 21-Jun-2006 at 09:20 AM.

  6. #6
    Join Date
    Jun 2006
    Posts
    214

    Default Re: Newbie cant work this out, Receive email but browser says prob

    Hi,

    Try this
    PHP Code:
    $TARGET_EMAIL = array(EMAIL_NAME."@kinlaygroup\.com$"); 
    PHP Code:
    define("DEF_ALERT","tom@kinlaygorup.com"); 
    For a PHP Editor try PHP Designer 2006

  7. #7
    Join Date
    Jun 2006
    Posts
    5

    Default Re: Newbie cant work this out, Receive email but browser says prob

    nope doesnt work (and I used the corrected address)

    I am now receiving this message
    "To: tom@kinleygroup.com
    From: FormMail@www.kinleygroup.com

    The following error occurred in FormMail :
    mail_failed
    **********
    Error=Failed to send email "

    but again I receive the form results and the browser gets the error page after hitting the submit button,

    Does anyone out there know of another sendmail, formmail that I can use as I am about to give up on this script

    thanks
    Tom

  8. #8
    Join Date
    Jun 2006
    Posts
    214

    Default Re: Newbie cant work this out, Receive email but browser says prob

    Ok the message from formmail@XXXXXXXXX is an error message. The data from the form should have come with a from address for your server not formmail. At least that is the way mine works.

    On finding another Form Mail script. Good luck. The reason I use this one is because it is the best I have ever seen. It has to be some simple little detail that is causing the problem.

  9. #9
    Join Date
    Jun 2006
    Posts
    5

    Default Re: Newbie cant work this out, Receive email but browser says prob

    Quote> "On finding another Form Mail script. Good luck."

    unfortunately Dave I've no choice, my changes were correct and it just doesnt work

    Tom

  10. #10
    Join Date
    Jul 2005
    Posts
    175

    Default Re: Newbie cant work this out, Receive email but browser says prob

    in your sampleform.htm you have:
    Code:
    <input type="hidden" name="recipient" value="tom">
    but correctly it should be recipients and an email address, e.g.:
    Code:
    <input type="hidden" name="recipients" value="tom@yourdomain.com">

    regarding your contact.htm file
    there you've forgotten the "" (.. method=post ..) .. it rather has to be:
    Code:
    <form action="http://www.kinleygroup.com/formmail.php" method="post">
    as well as you've to change the hidden redirect thing to:
    Code:
    <input type="hidden" name="good_url" value="http://www.kinleygroup.com/thankyou.htm">

    I hope that's it ...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Newbie question on open_basedir error
    By zenprofit in forum FormMail Subscription Support
    Replies: 14
    Last Post: 14-Feb-2005, 09:35 PM
  2. newbie problem
    By istory in forum FormMail Subscription Support
    Replies: 3
    Last Post: 03-Dec-2004, 08:34 AM
  3. HTML Email does not work if not all fields are filled.
    By onlmega in forum FormMail Subscription Support
    Replies: 7
    Last Post: 03-Aug-2004, 11:02 PM
  4. Newbie please help no recipents error
    By Mikej in forum FormMail Subscription Support
    Replies: 3
    Last Post: 23-Apr-2004, 05:55 AM
  5. Newbie: Help for the .php challenged
    By jeanie in forum FormMail Subscription Support
    Replies: 7
    Last Post: 29-Mar-2004, 08:49 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
  •