Results 1 to 9 of 9

Thread: formmail.php

  1. #1
    Join Date
    Jan 2004
    Posts
    5

    Default

    Thanks for use formmail.php
    but*I receive the next error messages after subnitting a form to the server

    Warning: Variable passed to each() is not an array or object in /data/www/capelsewijken.nl/formmail.php on line 793

    Warning: Invalid argument supplied for foreach() in /data/www/capelsewijken.nl/formmail.php on line 763
    An error occurred while processing the form.
    The error was: The form has an internal error - no actions or recipients were specified.


    Your form submission was processed by formmail.php, available from www.tectite.com

    I do have the next question :
    *
    *
    *
    as*
    *
    1my url : www.capelsewijken.nl
    2 my ******email info@capelsewijken.nl
    3** my mail host is mailhost.capelsewijken.nl
    *
    what should I enter for the commandline* 387 in formmail.php ?????
    *

    //
    $TARGET_EMAIL = array(EMAIL_NAME."@yourhost\.com$");


    As neither* of the three entrioes mentioned above*seem appropriate for the php script

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

    Default

    Hi Paul,

    Welcome to the FormMail support forum and thanks for posting the first question!

    *
    Warning: Variable passed to each() is not an array or object in /data/www/capelsewijken.nl/formmail.php on line 793

    Warning: Invalid argument supplied for foreach() in /data/www/capelsewijken.nl/formmail.php on line 763




    I think the problem is that you're using an old version of PHP.* FormMail requires version 4.2.3 or later of PHP.

    Do you know what version of PHP you're running?* If not, you can run upload the following script to your server and then open it with your browser:

    Code:
    <?php
    
    phpinfo();
    
    ?>
    If you are running a version before 4.2.3, then we can work with you to adapt FormMail for the earlier version - it shouldn't be too hard to do.



    I do have the next question :
    as 1my url : http://www.capelsewijken.nl
    2 my email info@capelsewijken.nl
    3 my mail host is mailhost.capelsewijken.nl
    what should I enter for the commandline 387 in formmail.php ?????
    // $TARGET_EMAIL = array(EMAIL_NAME."@yourhost.com$");
    Replace "yourhost.com" with "capelsewijken.nl" (and remove the comment slashes - //).

    *

  3. #3
    Join Date
    Jan 2004
    Posts
    5

    Default

    Dear Russel

    *

    It appears, that*my webhost provider is currently running PHP version 4.0.6

    Regards

    *

    Paul

    *

    *

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

    Default

    It may take a day or so to sort this out, but would like us to try to adapt formmail.php to PHP version 4.0.6?

  5. #5
    Join Date
    Jan 2004
    Posts
    5

    Default

    Dear Russel

    Yes please do so, as I am not in control of my webhost providers' release policy

    in due course :-)

    Thanks in advance

    Paul van Gink

    Capelle aan den IJssel

    *

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

    Default

    Hi Paul,

    Please find attached a new version of FormMail in a Zip file.

    We've made some changes and tested against PHP 4.06.* So, this version (FormMail 1.16) should now support your PHP installation.

    You'll need to re-enter your configuration settings (e.g. TARGET_EMAIL).

    Please let me know how you go with this version.
    Attached Files Attached Files

  7. #7
    Join Date
    Jan 2004
    Posts
    5

    Default

    Dear Russel

    *

    Thanks for your effort (but I had to sleep first !)

    This morning I saw your email and tested the php

    it's working great !

    Due to the alterations I noticed that the TARGET_EMAIL is not in line m387

    anymore but on line 428 (just for your documentation purposes)

    and secondly I observed that that entered email - address (email) is not forwarded

    to the recipient, realname and mesg do so correctly but email of the sender

    is not processed correctly in the*email message itself, maybe you can have a quick look to it

    *

    BUT THANKS FOR EVRYTHING !!!!!

    *

    Paul*

  8. #8
    Join Date
    Dec 2003
    Posts
    3,980

    Default

    Hi Paul,

    Due to the alterations I noticed that the TARGET_EMAIL is not in line m387 anymore but on line 428 (just for your documentation purposes)
    Thanks for reminding me....I'll change that in the released version.

    *
    secondly I observed that that entered email - address (email) is not forwarded to the recipient, realname and mesg do so correctly but email of the sender is not processed correctly in the email message itself, maybe you can have a quick look to it
    The form itself still needs to specify the email address you want to send to.* The TARGET_EMAIL in formmail.php is a security check - a pattern that must be matched by the email address in the form so that spammers can't use your formmail.php as a spam gateway.

    So, in your HTML form you need a line like this:

    Code:
    <input type="hidden" name="recipients" value="info@capelsewijken.nl">
    Note that it is "recipients" not "recipient" - you can have a comma separated list of them.

    Thanks again for using FormMail.


  9. #9
    Join Date
    Jan 2004
    Posts
    5

    Default

    Dear Russel

    Please ignore my last remark about the email address missing

    on the email form. I suddenly (?) receive proper email addresses by senders

    so everything looks allright

    I am quite happy with your fine solution,

    thanks very much

    Paul

    *

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Formmail.php Does it allow
    By DirtyHowi in forum FormMail Subscription Support
    Replies: 13
    Last Post: 13-Apr-2005, 10:12 AM
  2. formmail trouble html or php file not sure
    By putertfix in forum FormMail Subscription Support
    Replies: 5
    Last Post: 25-Oct-2004, 08:11 AM
  3. How to set up the formmail.php file?
    By treborito in forum FormMail Subscription Support
    Replies: 1
    Last Post: 19-Oct-2004, 06:29 PM
  4. Error Messsage for Formmail.php
    By dparker2 in forum FormMail Subscription Support
    Replies: 8
    Last Post: 01-Jun-2004, 07:09 AM
  5. GOOD_URL COMMAND IN FORMMAIL.PHP
    By Paul Ovens in forum FormMail Subscription Support
    Replies: 3
    Last Post: 19-Jan-2004, 04:29 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
  •