ho un sistema di login e vorrei che quando un nuovo utente si registra m arrivi una mail di avviso..
il codice che ho messo č questo
HTML FORM:
<form method="POST" action="email.asp">
<form method="POST">
<input type="hidden" name="act" value="salva">
<table border="0">
<tr>
<td><span class="Stile1"> E-mail</span></td>
<td><input type="text" name="email" size="25"></td></tr>
<tr><td><span class="Stile1">Username</span></td>
<td><input type="text" name="user" size="25"></td>
</tr>
<tr><td><span class="Stile1">Password</span></td>
<td><input type="password" name="pass" size="25"></td></tr>
<tr align="right" valign="middle"><td colspan="2"><input type="button" onClick="check()" value="Invia"></td>
</tr>
</table>
</form>
</form>
ASP CODE:
<html>
<head></head>
<body>
<%
var OggettoCDONTS = new ActiveXObject("CDONTS.NewMail");
OggettoCDONTS.From = email; // Mittente
OggettoCDONTS.To = "kikkostupido@yahoo.it"; // Destinatario (inserisci la tua email)
OggettoCDONTS.Subject = "Inserito nuovo utente"; // Oggetto
OggettoCDONTS.Body = "L'utente inserito nel db si kiama" + user; // Corpo
OggettoCDONTS.Send(); // Invio la mail
%>
</body>
</html>
MA L'ERRORE CHE M DA č QUESTO...
File: C:\Active Server Page\drs2\email.asp
Source: Errore di compilazione di Microsoft VBScript
Error: 800A0401
Description: Prevista fine istruzione
Line: 4 Column: 37
Code: var OggettoCDONTS = new ActiveXObject("CDONTS.NewMail");

Rispondi quotando

