Announcement

Collapse
No announcement yet.

FormMail.pl config on 1and1

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    FormMail.pl config on 1and1

    Not related directly to Actinic I know, but I'm hoping some 1and1 users are using mail forms on their websites that can help me getting mine working.

    I have configured FormMail.pl to be what I understand the 1and1 FAQs to say, but when testing I get an error 500 reported. I have set the permissions of my cgi-bin to 755 and the FormMail.pl file to 705.

    My domain root is a sub directory of my webspace and I have created a cgi-bin directory within it containing FormMail.pl

    In my test page I have:
    ----------------------------------------------
    <form method="post" action="/cgi-bin/FormMail.pl">
    <input type="hidden" name="recipient" value="test@xxxxxxx.co.uk" />
    <input type="text" name="feedback" /><br />
    Please enter your comments<br />
    <input type="submit" />
    </form>
    ----------------------------------------------

    My FormMail.pl is setup as:
    ----------------------------------------------
    BEGIN
    {
    $DEBUGGING = 1;
    $emulate_matts_code= 0;
    $secure = 1;
    $allow_empty_ref = 1;
    $max_recipients = 5;
    $mailprog = '/usr/lib/sendmail -oi -t';
    $postmaster = '';
    @referers = qw(xxxxxxx.co.uk localhost);
    @allow_mail_to = qw(xxxxxxx.co.uk localhost);
    @recipients = ();
    %recipient_alias = ();
    @valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USER_AGENT);
    $locale = '';
    $charset = 'iso-8859-1';
    $date_fmt = '%A, %B %d, %Y at %H:%M:%S';
    $style = '';
    $no_content = 0;
    $double_spacing = 1;
    $wrap_text = 0;
    $wrap_style = 1;
    $address_style = 0;
    $send_confirmation_mail = 0;
    $confirmation_text = <<'END_OF_CONFIRMATION';
    From: customerservices@xxxxxxx.co.uk
    Subject: form submission

    Thank you for your form submission.

    END_OF_CONFIRMATION
    ----------------------------------------------

    I'm wondering if it's not this, is not pathed right?
    $mailprog = '/usr/sbin/sendmail -oi -t';

    Any help much appreciated, thanks.

    Duncan R

    #2
    Resolved.

    Just for info for anyine else in future - I forgot to change the first line in FormMail.pl from:
    #!/usr/bin/perl -wT
    to just:
    #!/usr/bin/perl

    Duncan R

    Comment

    Working...
    X