Visualizzazione dei risultati da 1 a 3 su 3

Discussione: problemino e-mail...

  1. #1

    problemino e-mail...

    ho questo file php, che nn mi funziona +...in quanto, nn mi esce alcun errore di testo, ma la mail nn arriva...Quale potrebbe essere il problema????

    ecco il codice...
    Codice PHP:
    <?// L'INDIRIZZO DEL DESTINATARIO DELLA MAIL
    $to "xxx@alice.it";

    // IL SOGGETTO DELLA MAIL
    $subject "Formazione";

    // COSTRUIAMO IL CORPO DEL MESSAGGIO
    $body .= "Modulo  ";
    $body .= trim(stripslashes($_POST["T22"])) . "\n\n";
    $body .= "Formazione Titolare\n";
    $body .= trim(stripslashes($_POST["x1"])) . "\n";
    $body .= trim(stripslashes($_POST["x2"])) . "\n";
    $body .= trim(stripslashes($_POST["x3"])) . "\n";
    $body .= trim(stripslashes($_POST["x4"])) . "\n";
    $body .= trim(stripslashes($_POST["x5"])) . "\n";
    $body .= trim(stripslashes($_POST["x6"])) . "\n";
    $body .= trim(stripslashes($_POST["x7"])) . "\n";
    $body .= trim(stripslashes($_POST["x8"])) . "\n";
    $body .= trim(stripslashes($_POST["x9"])) . "\n";
    $body .= trim(stripslashes($_POST["x10"])) . "\n";
    $body .= trim(stripslashes($_POST["x11"])) . "\n\n";
    $body .= "Formazione Riserve\n";
    $body .= trim(stripslashes($_POST["x12"])) . "\n";
    $body .= trim(stripslashes($_POST["x13"])) . "\n";
    $body .= trim(stripslashes($_POST["x14"])) . "\n";
    $body .= trim(stripslashes($_POST["x15"])) . "\n";
    $body .= trim(stripslashes($_POST["x16"])) . "\n";
    $body .= trim(stripslashes($_POST["x17"])) . "\n";
    $body .= trim(stripslashes($_POST["x18"])) . "\n";

    // INVIO DELLA MAIL
    if(mail($to$subject$body)){
    } else{
    echo 
    "Si è verificato un errore durante l'invio. Riprovare o Contatta Al Sith.";
    }
    ?>
    vi prego...qualcuno mi aiuti...

    help me!!!

  2. #2
    lo script lo esegui in locale??

  3. #3
    Se non ti esce nessun errore di testo molto probabilmente è colpa del server di posta che ha molti messaggi di posta in coda. Prova ad aspettare un po'. A volte, anche ore...
    <!-- Debian GNU/Linux 4.0 Kernel 2.6.x -->
    ftp://ftp.it.debian.org/
    http://www.php.net/

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.