Visualizzazione dei risultati da 1 a 2 su 2

Discussione: Mail form

  1. #1

    Mail form

    Ho un mailform in php collegato ad una pagina flash... sarebbe complesso convertirlo in asp? Il codice è il seguente:


    <?

    /************************************************** ****
    **
    ** Flash Mx PHP Mailer
    **
    ** By - David Khundiashvili
    ************************************************** *****/

    /************************************************** *****

    Enter your site details below!

    ************************************************** *****/

    // Enter your contact email address here
    $adminaddress = "info@bit.it";

    // Enter the address of your website here include http://www.
    $siteaddress ="http://www.bit.it";

    // Enter your company name or site name here
    $sitename = "www.bit.it";

    /************************************************** *****

    No need to change anything below ...

    ************************************************** *****/

    $date = date("m/d/Y H:i:s");

    if ($REMOTE_ADDR == "") $ip = "no ip";
    else $ip = getHostByAddr($REMOTE_ADDR);


    if ($action != ""):
    mail("$adminaddress","Info Request",
    "Un visitatore del sito $sitename ha lasciato il seguente messaggio\n
    Nome: $fname
    Cognome: $lname
    Email: $email
    Telefono: $telno\n
    Testo del messaggio:
    ------------------------------
    $comments

    Logged Info :
    ------------------------------
    Using: $HTTP_USER_AGENT
    Hostname: $ip
    IP address: $REMOTE_ADDR
    Date/Time: $date","FROM:$adminaddress");

    mail("$email","Grazie per aver visitato il sito $sitename",
    "Buongiorno Sig. $lname, grazie per aver visitato il sito $sitename e\n
    per averci contattato; un nostro incaricato La contatterà al più presto.\n
    Le garantiamo che il suo indirizzo di posta non verrà mai ceduto a terzi.\n
    Cordiali saluti,\n
    \n

    $sitename
    $siteaddress","FROM:$adminaddress");

    $sendresult = "La ringraziamo per aver visitato il sito <a href = \"$siteaddress\" target = \"_blank\"><u>$sitename</u></a>. Riceverà al più presto una nostra mail di risposta. ";
    $send_answer = "answer=";
    $send_answer .= rawurlencode($sendresult);
    echo "$send_answer";

    endif;

    ?>
    "Style is the most important thing! It defines who you are" (Vulcan)

    Futura Immagine - Ultimi lavori

    Seil2 - I Diari della Lettera

  2. #2
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    Innanzitutto devi sapere su che server sei: 2000 o 2003.
    Nel primo caso devi usare CDONTS, nel secondo CDOSYS.

    Nel forum trovi tutto all'occorrenza.

    Roby

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.