Ciao a tutti, ho un problema con un modulo che dovrà essere inviato via mail, tramite una pagina asp.
una volta pubblicato il modulo non trova la pag.asp anche se risiede sul server nella stessa cartella. penso che il problema sia la pg asp e non il modulo. Ho riguardato il codice ma non trovo errori, premetto che è la prima volta che creo una pagina asp.
ho avuto indicazioni sul codice da usare dal webmaster e il server è "Persits.MailSender".
Di seguito il codice del modulo e il codice asp.....se qualcuno riesce ad aiutarmi.....grazie
MODULO
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Documento senza titolo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="post" action="pippo.asp">
Nome
<input type="text" name="textfield">
Cognome
<input type="text" name="textfield2">
</p>
indirizzo
<input type="text" name="textfield3">
paese
<input type="text" name="textfield4">
</p>
informazioni
<textarea name="textfield5"></textarea>
</p>
sesso m
<input type="radio" name="radiobutton" value="radiobutton">
f
<input type="radio" name="radiobutton" value="radiobutton">
</p>
HOBBY</p>
<input type="checkbox" name="checkbox" value="checkbox">
lettura
<input type="checkbox" name="checkbox2" value="checkbox">
musica
<input type="checkbox" name="checkbox3" value="checkbox">
sport</p>
<input type="submit" name="Submit" value="Invia">
<input type="reset" name="Submit2" value="reimposta">
</p>
</p>
</form>
</body>
</html>
Pag. ASP
<%@LANGUAGE="VBSCRIPT"%>
<html>
<head>
<title>Documento senza titolo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
i dati sono stati inviati con successo
</body>
<% Set Mail = Server.CreateObject ("Persits.MailSender")
Mail.Host = "smtp.tiscali.it"
Mail.From = "dal sito"
Mail.FromName ="dal sito"
Mail.AddAddress "dimf@hotmail.com"
w = w & "Nome:" & Request.Form("nome") & "
"
w = w & "Cognome:" & Request.Form("cognome") & "
"
w = w & "Indirizzo:" & Request.Form("indirizzo") & "
"
w = w & "Paese:" & Request.Form("paese") & "
"
w = w & "Informazioni:" & Request.Form("informazioni") & "
"
w = w & "Sesso : M " & Request.Form("sessom") & " F " & Request.Form("sessof") & "
"
w = "HOBBY
"
w = w & "Lettura :" & Request.Form ("lettura") & "
"
w = w & "Musica :" & Request.Form ("musica") & "
"
w = w & "Sport :" & Request.Form ("sport") & "
"
Mail.Body = w
Mail.Send
Set Mail=Nothing %>
</html>
questo è tutto grazie...