Visualizzazione dei risultati da 1 a 5 su 5
  1. #1

    Problema con FormMail e form!!!

    Salve a tutti, vi seguo da prima come fantasma ma adesso ufficialmente registrato volevo farvi i complimenti per il vostro sito e la competenza che avete!

    Adesso veniamo al mio problema:

    Praticamente ho scaricato FormMail V. 1.9 ed editato in questo modo, una volta editato salvato nella directory /cgi-bin:

    # Define Variables #
    # Detailed Information Found In README File. #

    # $mailprog defines the location of your sendmail program on your unix #
    # system. #

    $mailprog = '/usr/lib/sendmail';

    # @referers allows forms to be located only on servers which are defined #
    # in this field. This security fix from the last version which allowed #
    # anyone on any server to use your FormMail script on their web site. #

    @referers = ('www.davisar.it');

    # @recipients defines the e-mail addresses or domain names that e-mail can #
    # be sent to. This must be filled in correctly to prevent SPAM and allow #
    # valid addresses to receive e-mail. Read the documentation to find out how #
    # this variable works!!! It is EXTREMELY IMPORTANT. #
    @recipients = ('info@davisar.it');

    # ACCESS CONTROL FIX: Peter D. Thompson Yezek #
    # @valid_ENV allows the sysadmin to define what environment variables can #
    # be reported via the env_report directive. This was implemented to fix #
    # the problem reported at http://www.securityfocus.com/bid/1187 #

    @valid_ENV = ('REMOTE_HOST','REMOTE_ADDR','REMOTE_USER','HTTP_U SER_AGENT');

    # Done
    Il form creato è così:

    <form action="http://www.davisar.it/cgi-bin/FormMail.pl" method="POST">
    <input type=hidden name="recipient" value="info@davisar.it">
    <input type=hidden name="subject" value="oggetto">
    <table border="0" cellspacing="0" cellpadding="5" align="center">
    <tr>
    <td> Nome e Cognome:</td>
    <td align="right"><input type=text name="realname"></td>
    </tr>
    <tr>
    <td>Email:</td>
    <td align="right"><input type=text name="email"></td>
    </tr>
    <tr>
    <td colspan="2">Messaggio:</td>
    </tr>
    <tr>
    <td colspan="2"><textarea name="messaggio" cols="40" rows="5"></textarea></td>
    </tr>
    <tr>
    <td colspan="2" align="center"><input type="Submit" value="Invia"></td>
    </tr>
    </table>
    <input type=hidden name="required" value="email,realname,messaggio">
    </form>
    Il link dove sta il form è questo: http://www.davisar.it/contattaci.htm

    Quando inserisco i dati di prova e clicco su invio, mi dice che i dati sono stati spediti all'indirizzo: info@davisar.it ma quando vado su Outlook Express per vedere se mi arriva qualcosa non mi arriva un bel niente!

    Dov'è che sbaglio!?

    Grazie per le eventuali risposte!

  2. #2
    Adesso il file Formmail.pl editato così la versione è la 1.92:

    # Define Variables #
    # Detailed Information Found In README File. #

    # $mailprog defines the location of your sendmail program on your unix #
    # system. The flags -i and -t should be passed to sendmail in order to #
    # have it ignore single dots on a line and to read message for recipients #

    $mailprog = '/usr/lib/sendmail -i -t';

    # @referers allows forms to be located only on servers which are defined #
    # in this field. This security fix from the last version which allowed #
    # anyone on any server to use your FormMail script on their web site. #

    @referers = ('davisar.it','209.227.249.90');

    # @recipients defines the e-mail addresses or domain names that e-mail can #
    # be sent to. This must be filled in correctly to prevent SPAM and allow #
    # valid addresses to receive e-mail. Read the documentation to find out how #
    # this variable works!!! It is EXTREMELY IMPORTANT. #
    @recipients = &fill_recipients(@referers);

    # ACCESS CONTROL FIX: Peter D. Thompson Yezek #
    # @valid_ENV allows the sysadmin to define what environment variables can #
    # be reported via the env_report directive. This was implemented to fix #
    # the problem reported at http://www.securityfocus.com/bid/1187 #

    @valid_ENV = ('REMOTE_HOST','REMOTE_ADDR','REMOTE_USER','HTTP_U SER_AGENT');

    # Done
    Un'altra cosa, quando trasferisco il seguente file in ASCII con CuteFTP CMOD per sostituire i permessi 777 con 755 mi impedisce di farlo dandomi errore!

  3. #3
    qual'è il sistema operativo del server che usi?

    hai disponibilità del programma di posta sendmail sul server?

    il path è esatto?
    Marco Allegretti
    shishii@tiscalinet.it
    Lang: PERL, PHP, SQL.
    Linux user n° 268623 Fedora Core 10, Fedora Core 6, Debian Sarge on mips

  4. #4
    Originariamente inviato da shishii
    qual'è il sistema operativo del server che usi?

    hai disponibilità del programma di posta sendmail sul server?

    il path è esatto?
    1) Uso per linux server

    2) Questo non saprei anche perchè il dominio purtroppo non l'ho acquistato io

    3) Il path è esatto

  5. #5
    e come fai a dire che il path del programma di posta è esatto se non sai se è disponibile?

    Il tipo di risultato che descrivi è tipico di quando non c'è o non si può usare sendmail o il path dello stesso è errato.
    Marco Allegretti
    shishii@tiscalinet.it
    Lang: PERL, PHP, SQL.
    Linux user n° 268623 Fedora Core 10, Fedora Core 6, Debian Sarge on mips

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.