Visualizzazione dei risultati da 1 a 3 su 3

Discussione: form.asp

  1. #1

    form.asp

    Salve a tutti, ho copiato uno script sul web, questo è il codice che dovrebbe far funzionare lo script ma nonostante abbia compilato i campi con il mio dominio e la mia e-mail, non funziona. Qualcuno sa dirmi il perchè? Grazie per l'attenzione
    __________________________________________________ _______________________________________

    <%Response.Buffer=True%>
    <html>
    <head>
    <title>Thank You Page</title><%
    Dim t1name,t1,t2name,t2
    t1name = "name"
    t1 = Request.Form("t1")
    t2name = "email"
    t2 = Request.Form("t2")
    Dim stname,st
    stname = "comments"
    st = Request.Form("s1")
    Dim JMail
    Set JMail = Server.CreateObject("JMail.SMTPMail")
    'Change this line to the address of your email server.
    'Something like this: mail.tuodominio.com:25
    JMail.ServerAddress = "mail.tuodominio.com"
    JMail.AddRecipient "mail@tuodominio.com"
    'CHANGE THE EMAIL ADDRESS IN QUOTES ABOVE TO THE ADDRESS YOU WANT THIS MAIL SENT
    JMail.Sender = t2
    'CHANGE THE SUBJECT FIELD TO REMIND YOU WHERE THE FORM COMES FROM ON YOUR SITE
    JMail.Subject = "Feedback from Your Site"
    JMail.Body = t1name & vbcrlf&_
    t1 & vbcrlf&_
    t2name & vbcrlf&_
    t2 & vbcrlf&_
    stname & vbcrlf&_
    st
    JMail.Execute
    Set JMail = Nothing
    Response.Write"<center />Thank You, your email has been sent.
    This window will self close in 10 seconds..."
    %>
    <script language="javascript"><!--
    var timer = null
    function closeWin() {
    self.close()
    }
    //-->
    </script>
    </head>
    <body onLoad="timer=setTimeout('closeWin()',8000)"><form >
    <input type="button" value="EXIT" onClick="window.close()"></form>
    </body>
    </html>

  2. #2
    Moderatore di ASP e MS Server L'avatar di Roby_72
    Registrato dal
    Aug 2001
    Messaggi
    19,559
    Questo script usa questo componente:
    Set JMail = Server.CreateObject("JMail.SMTPMail")


    Su tuo server è installato?

    Roby

  3. #3

    grazie

    Grazie edesso controllo...ciao

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 © 2026 vBulletin Solutions, Inc. All rights reserved.