Ciao!
In questi giorni sto uplodando il mio sito sul dominio ospitato da aruba, hosting window, con database mysql.

Ho costruito un form per la scrittura e relativa spedizione di mail direttamente dal sito e l'invio di indirizzo email per l'iscrizione alla newsletter. Solo che ho qualche problema con l'attivazione dei form.

Premettendo la mia ignoranza riguardo questo codice di scripting e la lettura dei 3d gia scritti nel forum, ho provato comunque a spataccare ma invano e volevo sapere che cosa devo fare di preciso. Cercando in rete a riguardo ho capito che dovrei usare la cartella cgi-bin come sorta di contenitore di un file che convogli le mail all'indirizzo definito.

In tal proposito ho anche cercato di installare FormMail Version 3.14c1( nms-cgi-support@lists.sourceforge.net, l'autore nn so chi sia di preciso), seguendo le istruzioni alla lettera ma ottenendo come risultato:

"CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers."

Ho riletto il vademecum di aruba inviatomi ed ho trovato questo messaggioun po allarmante:
“cgi-bin : questa cartella puo' contenere files eseguibili quali cgi e simili.Non ha i permessi di scrittura.”

In attesa di un vostro consiglio, cari saluti

Marx


///////////////////////////////////////////////////////

FORM MAIL
<div class="menuTras" id="menu3">
<form method="post" action="http://www.nomesito.com/cgi-bin/FormMail.pl" class="form">

<h5 style="text-indent:1em;">email address</h5>
<input type=text name="email" class="text" id="emailAddress" />

<h5 style="text-indent:1em;">Subject</h5>
<input type=text name="subject" class="text" id="subject">

<textarea name="messaggio" class="textArea"></textarea>
<input type="Submit" value="Send message" class="pulsanteOn" onmouseover="this.className='pulsanteHover'"onmous eout="this.className='pulsanteOn'"/>
<input type=hidden name="required" value="email,subject,messaggio">
</form>
</div>

NEWSLETTER
<div id="newsletterForm">
<form method="post" action="http://www. nomesito.com/cgi-bin/FormMail.pl" class="formTras" >

<input name="newsletter" type="text" class="textNewsletter"/>
<input type="Submit" value="Subscribe" class="subscribeOn" onmouseover="this.className='subscribeHover'"onmou seout="this.className='subscribeOn'"/>

<input type=hidden name="required" value="email,subject,messaggio">
</form>
</div>
///////////////////////////////////////////////////////

Di seguito il file FormMail.pl inserito nella cartella cgi-bin del mio sito

#FormMail Version 3.14c1
#Copyright 2001-2003 London Perl Mongers, All rights reserved


#!/usr/bin/perl -wT
#
# NMS FormMail Version 3.14c1
#

use strict;
use vars qw(
$DEBUGGING $emulate_matts_code $secure %more_config
$allow_empty_ref $max_recipients $mailprog @referers
@allow_mail_to @recipients %recipient_alias
@valid_ENV $date_fmt $style $send_confirmation_mail
$confirmation_text $locale $charset $no_content
$double_spacing $wrap_text $wrap_style $postmaster
$address_style
);

# PROGRAM INFORMATION
# -------------------
# FormMail.pl Version 3.14c1
#
# This program is licensed in the same way as Perl
# itself. You are free to choose between the GNU Public
# License <http://www.gnu.org/licenses/gpl.html> or
# the Artistic License
# <http://www.perl.com/pub/a/language/misc/Artistic.html>
#
# For help on configuration or installation see the
# README file or the POD documentation at the end of
# this file.

# USER CONFIGURATION SECTION
# --------------------------
# Modify these to your own settings. You might have to
# contact your system administrator if you do not run
# your own web server. If the purpose of these
# parameters seems unclear, please see the README file.
#
BEGIN
{
$DEBUGGING = 1;
$emulate_matts_code= 0;
$secure = 1;
$allow_empty_ref = 1;
$max_recipients = 5;
$mailprog = 'SMTP:smtp.nomesito.com'; ***qui ho cambiato, visto che il server non é Unix
$postmaster = 'contact@nomesito.com';
@referers = qw(www. nomesito.com);
@allow_mail_to = qw(contact@ nomesito.com);
@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 = '/css/nms.css';
$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: you@your.com
Subject: form submission

Thank you for your form submission.

END_OF_CONFIRMATION

# You may need to uncomment the line below and adjust the path.
# use lib './lib';

# USER CUSTOMISATION SECTION
# --------------------------
# Place any custom code here



# USER CUSTOMISATION << END >>
# ----------------------------
# (no user serviceable parts beyond here)
}


////////////////////////////////////////////////////