Salve ho creato il seguente form per inviare una email dal sito alla mia casella di posta.
Il risultato innanzitutto è qui e funziona perfettamente, cioè mi dice che l'email è stata spedita.
Il codice sorgente è il seguente
Costruzione del form:
<html>
<head>
<title>Invia il tuo parere!</title>
</head>
<body>
<form action="formmail.asp" method="post">
Il tuo nome:
<input type="text" name="nome">
Il tuo parere sul sito:
<textarea name="parere" cols="40" rows="10"></textarea>
<input type="submit" value="Invia">
<input type="reset" value="Cancella">
</form>
</body>
</html>
Pagina asp per inviare i dati
<%@ LANGUAGE = JScript %>
<%
var nome = new String(Request.Form("nome"));
var parere = new String(Request.Form("parere"));
var mail = new ActiveXObject("CDONTS.NewMail");
// Immettere un destinatario esistente!
mail.To = "info@generationweb.it";
mail.From = "formmail@nohost.it";
mail.Subject = "Parere da " + nome;
mail.Body = parere;
mail.Send();
%>
<html>
<head>
<title>Grazie!</title>
</head>
<body>
Il tuo parere è stato inviato!
</body>
</html>
Il problema è che nn mi arriva l'email![]()
Gentilmente se c'è qualcuno che mi aiuta ve ne sarei molto grato....
ciao![]()

Rispondi quotando