Visualizzazione dei risultati da 1 a 7 su 7
  1. #1
    Utente di HTML.it
    Registrato dal
    Feb 2007
    Messaggi
    133

    Non funziona lo script EASYLETTER

    Non so quanti di voi hanno provato questo script per la gestione di una newsletter senza database(consigliato da html.it http://php.html.it/script/vedi/1322/easyletter/). Gira bene ma ho notato un problema. Quando inoltro le email, esse non arrivano a destinazione per tutti gli indirizzi email inseriti nella lista. Credo che li invii solo ai primi della lista (i primi 3 o 4). E' un problema che riscontro con molti altri script... Cosa c'è che non va? Grazie anticipatamente.

  2. #2
    Utente di HTML.it
    Registrato dal
    Feb 2007
    Messaggi
    133
    nessuno mi risponde? non riesco a capire cosa non funziona

  3. #3
    Probabilmente hai un limite di email in un tot tempo...
    Non ne ho mai sentito parlare, ma da come hai spiegato il problema, salvo errori tuoi, potrebbe essere così...

    Prova a postare il codice che usi per inviare le email, magari salta fuori qualche cagata e si può risolvere...
    ...::: DESIDERARE E' UMANO :::...
    ...::: POSSEDERE E' DIVINO :::...
    ...::: HAVE A NICE DAY :::...
    (¯`·.¸¸.->ĐĮ ĦΞŁŁ<-.¸¸.·`¯)
    http://www.djhellclub.com

  4. #4
    Utente di HTML.it
    Registrato dal
    Feb 2007
    Messaggi
    133
    allora, questo è il codice; ditemi se c'è qualcosa che non va (a questo codice è associato un file vuoto chiamato subcribers.txt):

    <?

    # Version 1.1 Debugged, please upgrade older ones...

    ################################################## ######################
    # Global Settings...
    ################################################## ######################

    # Set the password for the eMail List editor!
    $pass="admin";
    # Name of the datafile
    $filelocation="./easyletter/subscribers.txt";
    # Title of the newsletter, will be displayed in the FROM field of the mailclient
    $lettername="Easyletter";
    # Your email, will be the reply-to mail
    $youremail="easyletter@server.com";

    ################################################## ######################
    # Displayed Messages
    ################################################## ######################

    # Welcome message displayed above the form for subscribing/unsubscribing
    $welcomemessage = "";

    # Sorrymessage for failed subscription, will be followed by the email!
    $sorrysignmessage = "Attenzione! Il seguente indirizzo email è già presente nel database: ";

    # Subscribe message, will be displayed when subscribing
    $subscribemessage = "Grazie per esserti iscritto alla newsletter, presto riceverai una email di conferma al seguente indirizzo: ";
    # Subscribemail, will be sent when someone subscribes.
    $subscribemail = "Gentile Utente, grazie per esserti iscritto alla newsletter";

    # Unsubscribemessage for deletion, will be followed by the email!
    $unsubscribemessage = "Il seguente indirizzo email è stato eliminato dal database: ";

    # Unsubscribemessage for failed deletion, will be followed by the email!
    $failedunsubscriptionmessage = "Attenzione! Il seguente indirizzo email non esiste nel database: ";

    ################################################## ######################
    # Let the code begin...
    ################################################## ######################

    # Checks if the file exists, if not creates a new one
    if (!file_exists($filelocation)) {
    $newfile = fopen($filelocation,"w+");
    fclose($newfile);
    }
    # Open the datafile and read the content
    $newfile = fopen($filelocation,"r");
    $content = fread($newfile, filesize($filelocation));
    fclose($newfile);
    # Remove the slashes PHP automatically puts before special characters
    $content=stripslashes($content);
    # Reset the output of the "search result"
    $out="";
    # Put the entries into the array lines
    $lines = explode("%",$content);
    for ($key=1;$key<sizeof($lines);$key++){
    # when the email is not in the list, add the old entries
    if ($lines[$key] != $email){
    $out .= "%".$lines[$key];
    }
    # when it's already in the list, set found
    else {
    $found=1;
    }
    }

    ################################################## ######################
    # Signing in
    ################################################## ######################

    if ($action=="sign"){
    # When there is already a subscription for this email *duh*
    if ($found==1){
    # Display Sorrymessage
    echo "<div align=\"center\">".$sorrysignmessage.$email."</div>

    ";
    $disp="yes";
    }
    # otherwise, add the email to the list
    else {
    $disp="no";
    $newfile = fopen($filelocation,"a+");
    $add = "%".$email;
    fwrite($newfile, $add);
    fclose($newfile);
    # display the message of subscription
    echo "<div align=\"center\">".$subscribemessage.$email."</div>

    ";
    # send confirmation Mail
    $submailheaders = "From: $lettername easyletter@server.com\n";
    $submailheaders .= "Reply-To: $youremail\n";
    mail ($email,$lettername." Newsletter",$subscribemail,$submailheaders);
    }
    }

    ################################################## ######################
    # Signing out
    ################################################## ######################

    if ($action=="delete"){
    $disp="no";
    # If the email is in the list...
    if ($found == 1){
    $newfile = fopen($filelocation,"w+");
    fwrite($newfile, $out);
    fclose($newfile);
    # display the message for deleted items...
    echo "<div align=\"center\">".$unsubscribemessage.$email."</div>

    ";
    $disp="no";
    }
    # if the email is not in the list
    if ($found != 1){
    # display the message that tells that...
    echo "<div align=\"center\">".$failedunsubscriptionmessage.$email."</div>

    ";
    $disp="YES";
    }
    }

    ################################################## ######################
    # The core for the owner of the letter
    ################################################## ######################

    if ($pw == $pass){

    # When nothing was entered so far, display the form
    if ($send != "yes" && $send != "test"){
    print'<form method="post"><input type="hidden" name=pw value='.$pass.'><input type="hidden" name=send value=yes>

    Newsletter editor:


    Subject:

    <input type="text" name="subject" size=20>

    Message:

    <textarea cols=50 rows=10 wrap="virtual" name="message"></textarea>


    <input type="submit" value="send">
    </form>';
    }

    # Predefine the Mail Settings for sending...
    $mailheaders = "From: $lettername easyletter@server.com\n";
    $mailheaders .= "Reply-To: $youremail\n";
    # add data in bcc fields

    # Data was ok, send button is pressed
    if ($send == "yes"){
    $message=stripslashes($message);
    $subject=stripslashes($subject);
    $lines = explode("%",$content);
    for ($key=1;$key<sizeof($lines);$key++){
    mail ($lines[$key],$subject,$message,$mailheaders);
    }
    print "E' stata inviata la seguente email";
    print "<pre>$mailheaders\n$subject\n$message</pre>";
    }
    }


    ################################################## ######################
    # The Form for the users...
    ################################################## ######################
    if ($pw != $pass && $disp != "no"){
    print $welcomemessage;
    print'
    <div align="center"><form method="post">
    <input type="text" name="email" value="Inserisci la tua e-mail" size=30>
    <input type="radio" name="action" value="sign" checked>Iscrivimi
    <input type="radio" name="action" value="delete">Cancellami

    <input type="submit" value="Invia">
    </form></div>
    ';
    }
    print "";
    ?>

  5. #5
    Utente di HTML.it
    Registrato dal
    Feb 2007
    Messaggi
    133
    per piacere, qualcuno mi aiuti...

  6. #6
    Utente di HTML.it
    Registrato dal
    Feb 2007
    Messaggi
    133
    qualcuno mi dia un aiutino per questo problemaaa

  7. #7
    Utente di HTML.it
    Registrato dal
    Feb 2007
    Messaggi
    133
    ?????

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.