Broadband
Dial-Up
Email
Hosting
Wireless
Security
Useful Tools
Quick Reference
Contact Us
Customer Portal
Site Search

Zen Internet Support Forum

Welcome to the Zen Internet community support forums.

Before posting we recommend you search our
extensive Knowledge Base or the forum archives
as an answer to your query may already be available.

Welcome to Zen Internet Support Forum Sign in | Join | Help
in
Forums Forum Rules

FormMail e-mail issue ...

Last post 10-08-2007, 10:17 AM by James Sweet. 1 replies.
Sort Posts: Previous Next
  •  08-08-2007, 11:53 AM 27797

    FormMail e-mail issue ...

    Dear Zen

    This message has been poster into the General e-mail message board too.

    I am hoping that you can help me. I am having trouble with the FormMail script for <www.foresight-ifp.co.uk>. I am receiving no in-browser errors but if I check the Error log in the CPanel I can see there are issues. 

    1. Can you please inform me if the following location for the cgi-bin directory is correct? <http://www.foresight-ifp.co.uk/cgi-bin/FormMail.pl>. On the FTP server the website and CGI directory are located in public_html.

    If I browse to <http://www.foresight-ifp.co.uk/cgi-bin/FormMail.pl> I get the following message:

    Error: GET request

    The HTML form fails to specify the POST method, so it would not be correct for this script to take any action in response to your request.

    If you are attempting to configure this form to run with FormMail, you need to set the request method to POST in the opening form tag, like this: <form action="/cgi-bin/FormMail.pl" method="post">

    2. I have checked my HTML page and the FORM ACTION appears to be correct:

    <FORM ACTION="http://www.foresight-ifp.co.uk/cgi-bin/FormMail.pl" METHOD="post">

    Can you see any problems with this?

    3. Permissions for all files is set to 755 as recommended.

    4. This is your error log. I presume the favicon.ico error isn't related to the form error. Please confirm:

    [Wed Aug  8 10:53:09 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
    [Wed Aug  8 10:52:40 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
    [Wed Aug  8 10:50:31 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
    [Wed Aug  8 10:49:40 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
    [Wed Aug  8 10:47:59 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
    [Wed Aug  8 10:46:49 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
    [Wed Aug  8 10:46:43 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/public_html/cgi-bin/FormMail.pl
    [Wed Aug  8 10:46:37 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/foresigh/public_html/cgi-bin/FormMail.pl
    [Wed Aug  8 10:44:00 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
    [Wed Aug  8 10:40:08 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
    [Wed Aug  8 10:39:58 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
    [Wed Aug  8 10:37:06 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
    [Wed Aug  8 10:36:55 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
    [Wed Aug  8 10:36:00 2007] [error] [client 212.103.239.157] script not found or unable to stat: /data01/foresigh/public_html/cgi-bin/FormMail.pl
    [Wed Aug  8 10:35:44 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
    [Wed Aug  8 10:35:40 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
    [Wed Aug  8 10:25:13 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
    [Wed Aug  8 10:25:02 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
    [Wed Aug  8 10:23:27 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
    [Wed Aug  8 10:23:27 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/500.shtml
    [Wed Aug  8 10:23:27 2007] [error] [client 212.103.239.157] Premature end of script headers: /data01/foresigh/public_html/cgi-bin/FormMail.pl
    [Wed Aug  8 10:23:10 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
    [Wed Aug  8 10:21:20 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
    [Wed Aug  8 10:21:18 2007] [error] [client 212.103.239.157] File does not exist: /data01/foresigh/public_html/favicon.ico
    [Wed Aug  8 10:09:22 2007] [error] [client 217.45.133.145] File does not exist: /data01/foresigh/public_html/favicon.ico

    5. As a long shot can you please tell me the path to your sendmail? I am trying to troubleshoot the $mailprog variable in FormMail.pl.

    The default setting for the for the FormMail.pl is: /usr/lib/sendmail -oi -t

    Can you tell me if this is correct?

    If your web server lacks a sendmail binary, please let me know what the IP address is of your SMTP server configured to relay mail.

    Thanks!
    Andrew

  •  10-08-2007, 10:17 AM 27823 in reply to 27797

    Re: FormMail e-mail issue ...

    It sounds like you may have messed up the formMail.pl file, possibly by leaving off an end quote or something.

    The other possibility is that you uploaded in in binary mode, not ascii. It NEEDS to be uploaded in ASCII mode or it will screw up. Try renaming the file to formmail.pl.txt and upload it again, and then rename it back to formmail.pl once its on the server. (don't forget to set permission back to 755 after this!)

    If that still doesn't work then I'd advise to re-read the article at http://www.zensupport.co.uk/knowledgebase/article.aspx?id=10440

    This article includes the information you should need (location of sendmail etc)

    • Make sure you have set the @allow_mail_to variable in your formmail script to the address you want the email delivered to! 

    Kindest regards,

    James Sweet
    http://www.zen.co.uk
View as RSS news feed in XML