recuperare password - da registrazione asp

TekNoMaster

Utente Attivo
19 Giu 2007
35
0
0
Eccomi, appuntamento mattutino e qualcuno magari ha già il dolore di pancia vedendomi rompere continuamente le scatole. Un giorno ripagherò quanto gentilmente mi è stato dato FREE!

Dopo (con l'aiuto vostro) aver sistemato e messo in funzione un o script semplice, mi addentro a qualcosa di più complicato ma più completo (almeno così dovrebbe essere.

Sul sito di aspcode.it, e credo sia presente anche tra gli script free di mrw, ho scaricato un tool che da la possibilità di proteggere le password, registrare utenti che poi hanno la possibilità di accedere al proprio pannello di controllo recuperare la password smarrita ecc. ecc.

sembra funzionare bene ma, come al solito mi ritrovo con alcuni problemi, ecco l'errore:

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/public/registrazione_e_gestione_utenti/recupera_password.asp, line 67

800401f3




lo script è il seguente:


Codice:
<%
'------------------------------------------------------------------------------------
'Copyright (C) 2004 Demetrio G. Milea
'
'This program is free software; you can redistribute it and/or
'modify it under the terms of the GNU General Public License
'as published by the Free Software Foundation; either version 2
'of the License, or (at your option) any later version.
'
'This program is distributed in the hope that it will be useful,
'but WITHOUT ANY WARRANTY; without even the implied warranty of
'MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
'GNU General Public License for more details.
'
'A copy of the license may be found at www.fsf.org (Free Software Foundation)
'or inside the folder registrazione_e_gestione_utenti
'------------------------------------------------------------------------------------
%>

<!--#include file="inc_common.asp" -->
<!--#include file="inc_viewuser.asp" -->
<%
If Request.QueryString("step") = "2" Then
	Response.Redirect("recupera_password.asp?step=3&userCode=" & getUserCode(Request.Form("username"), Request.Form("email")))
ElseIf Request.QueryString("step") = "3" AND Request.QueryString("userCode") <> "" Then
	strFromName			= pageTitle & " Webmaster"
	strFromEmail		= adminEmail
	strRecipientsEmail	= rs_viewuser("email")
	strRecipientsName	= rs_viewuser("nome")
	strSubject			= pageTitle & " Password Reminder"
	strMessage			= "------------------------------------------" & vbCrLf & _
						strRecipientsName & ", Le informazioni da lei richieste:" & vbCrLf & vbCrLf & _
						"Username: " & rs_viewuser("name") & vbCrLf & _
						"Password: " & rs_viewuser("pass") & vbCrLf & vbCrLf & _
						"Grazie per averci scelto," & vbCrLf & pageTitle & " Webmaster"

	Select Case LCase(tipoMail)
		Case "aspemail"
			Set objNewMail = Server.CreateObject("Persits.MailSender")
			objNewMail.Host = mailServer
			objNewMail.FromName = strFromName
			objNewMail.AddReplyTo strFromEmail
			objNewMail.From = strFromEmail
			objNewMail.AddAddress strRecipientsEmail, strRecipientsName
			objNewMail.Subject = strSubject
			objNewMail.Body = strMessage
			On Error Resume Next '## Ignora errore
			objNewMail.Send
			If Err <> 0 Then 
				Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
			End if
		Case "aspmail"
			Set objNewMail = Server.CreateObject("SMTPsvg.Mailer")
			objNewMail.FromName = strFromName
			objNewMail.FromAddress = strFromEmail
			'objNewMail.AddReplyTo = strFromEmail
			objNewMail.RemoteHost = mailServer
			objNewMail.AddRecipient strRecipientsName, strRecipientsEmail
			objNewMail.Subject = strSubject
			objNewMail.BodyText = strMessage
			On Error Resume Next '## Ignore Errore
			SendOk = objNewMail.SendMail
			If not(SendOk) <> 0 Then 
				Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & objNewMail.Response & "</li>"
			End if
		Case "cdonts"
			Set objNewMail = Server.CreateObject ("CDONTS.NewMail")
			objNewMail.BodyFormat = 1
			objNewMail.MailFormat = 0
			On Error Resume Next '## Ignora Errore
			objNewMail.Send strFromEmail, strRecipientsEmail, strSubject, strMessage
			If Err <> 0 Then 
				Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
			End if
			On Error Resume Next '## Ignora Errore
			
			Case "cdosys"
				Set objMessage = CreateObject("CDO.Message") 
				objMessage.Sender  = strFromEmail
				objMessage.TextBody = strMessage
				objMessage.To = strFromEmail 
				objMessage.Subject = strSubject 
				objMessage.Send 
				If Err <> 0 Then 
				Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
				End if
				On Error Resume Next '## Ignore Errors
				
		Case "chilicdonts"
			Set objNewMail = Server.CreateObject ("CDONTS.NewMail")
			On Error Resume Next '## Ignora Errore
			objNewMail.Host = mailServer
			objNewMail.To = strRecipientsEmail
			objNewMail.From = strFromEmail
			objNewMail.Subject = strSubject
			objNewMail.Body = strMessage
			objNewMail.Send
			If Err <> 0 Then 
				Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
			End if
			On Error Resume Next '## Ignora Errore
		Case "jmail"
			Set objNewMail = Server.CreateObject("Jmail.smtpmail")
			objNewMail.ServerAddress = mailServer
			objNewMail.AddRecipient strRecipientsEmail
			objNewMail.Sender = strFromEmail
			objNewMail.Subject = strSubject
			objNewMail.Body = strMessage
			objNewMail.Priority = 3
			On Error Resume Next '## Ignora Errore
			objNewMail.Execute
			If Err <> 0 Then 
				Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
			End if
		Case "jmail4"
			Set objNewMail = Server.CreateObject("Jmail.Message")
			'objNewMail.MailServerUserName = "myUserName"
			'objNewMail.MailServerPassword = "MyPassword"
			objNewMail.From = strFromEmail
			objNewMail.FromName = strFromName
			objNewMail.AddRecipient strRecipientsEmail, strRecipientsName
			objNewMail.Subject = strSubject
			objNewMail.Body = strMessage
			On Error Resume Next '## Ignore Errors
			objNewMail.Send(mailServer)
			If Err <> 0 Then 
				Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
			End if
		Case "smtp"
			Set objNewMail = Server.CreateObject("SmtpMail.SmtpMail.1")
			objNewMail.MailServer = mailServer
			objNewMail.Recipients = strRecipientsEmail
			objNewMail.Sender = strFromEmail
			objNewMail.Subject = strSubject
			objNewMail.Message = strMessage
			On Error Resume Next '## Ignore Errors
			objNewMail.SendMail2
			If Err <> 0 Then 
				Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
			End if
	End Select
	Set objNewMail = Nothing
	On Error Goto 0
	mailSent = True
ElseIf Request.QueryString("step") = "3" AND Request.QueryString("userCode") = "" Then
	mailSent = False
	emptyValue = True
Else
	mailSent = False
End If
%>
<% Server.Execute("header.asp") %>
<title><%=pageTitle%> - Recupera Password</title>
<% If mailSent = False Then %>
<%	If emptyValue = True Then %>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<p align="center">Combinazione Username/Email non valida</p>
<%	End If %>
<form name="pwForm" method="post" action="recupera_password.asp?step=2">
  <table width="412" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr>
      <td height="35" colspan="2" align="center"><strong><font size="5">Inserisci 
        username e email</font></strong></td>
    </tr>
    <tr>
      <td colspan="2" height="4"></td>
    </tr>
    <tr>
      <td width="30%">Username</td>
      <td width="70%"><input name="username" type="text" id="username" size="35"></td>
    </tr>
    <tr>
      <td colspan="2" height="4"></td>
    </tr>
    <tr>
      <td width="30%">Email</td>
      <td width="70%"><input name="email" type="text" id="email" size="35"></td>
    </tr>
    <tr>
      <td colspan="2" height="4"></td>
   </tr>
    <tr>
      <td colspan="2" align="center"><input type="submit" name="Submit" value="Submit">
        <input name="Reset" type="reset" id="Reset" value="Reset"></td>
    </tr>
  </table>
</form>
<% Else %>
<p align="center">Username e Password ti sono state spedite per email.</p>
<% End If %>
<% Server.Execute("footer.asp") %>


stavolta cosa mi sono perso? come posso evitare l'errore?
sono impallato, nn riesco ad andare avanti


Si accettano miracoli!
Grazie
 

serpico

Utente Attivo
22 Ago 2004
56
0
0
ho scaricato anche io quello script e ti posso dire che vi erano parecchie cose che ho dovuto cambiare... ma meglio cambiare qualcosa che rifarlo da zero (se trovi lo script che fa al caso tuo no!? ;P)
comunque io l'ho modificato così:

Codice:
<!--#include file="inc_common.asp" -->
<!--#include file="inc_viewuser.asp" -->
<%
If Request.QueryString("step") = "2" Then
	Response.Redirect("recupera_password.asp?step=3&userCode=" & getUserCode(Request.Form("username"), Request.Form("email")))
ElseIf Request.QueryString("step") = "3" AND Request.QueryString("userCode") <> "" Then
MailOrder = "[email protected]" 'Indirizzo mittente ordini
strSender = MailOrder  	
strFromName			= pageTitle & " Webmaster"
	'strFromEmail		= adminEmail
	strRecipientsEmail	= rs_viewuser("email")
	strRecipientsName	= rs_viewuser("nome")
	strSubject			= pageTitle & " Password Reminder"
	strMessage			= "------------------------------------------" & vbCrLf & _
						strRecipientsName & ", Le informazioni da lei richieste:" & vbCrLf & vbCrLf & _
						"Username: " & rs_viewuser("name") & vbCrLf & _
						"Password: " & rs_viewuser("pass") & vbCrLf & vbCrLf & _
						"Grazie per averci scelto," & vbCrLf & pageTitle & " Webmaster"

	Select Case LCase(tipoMail)
		Case "aspemail"
			Set objNewMail = Server.CreateObject("Persits.MailSender")
			objNewMail.Host = mailServer
			objNewMail.FromName = strFromName
			objNewMail.AddReplyTo strFromEmail
			objNewMail.From = strFromEmail
			objNewMail.AddAddress strRecipientsEmail, strRecipientsName
			objNewMail.Subject = strSubject
			objNewMail.Body = strMessage
			On Error Resume Next '## Ignora errore
			objNewMail.Send
			If Err <> 0 Then 
				Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
			End if
		Case "aspmail"
			Set objNewMail = Server.CreateObject("SMTPsvg.Mailer")
			objNewMail.FromName = strFromName
			objNewMail.FromAddress = strFromEmail
			'objNewMail.AddReplyTo = strFromEmail
			objNewMail.RemoteHost = mailServer
			objNewMail.AddRecipient strRecipientsName, strRecipientsEmail
			objNewMail.Subject = strSubject
			objNewMail.BodyText = strMessage
			On Error Resume Next '## Ignore Errore
			SendOk = objNewMail.SendMail
			If not(SendOk) <> 0 Then 
				Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & objNewMail.Response & "</li>"
			End if
		Case "cdonts"
			Set objNewMail = Server.CreateObject ("CDONTS.NewMail")
			objNewMail.BodyFormat = 1
			objNewMail.MailFormat = 0
			On Error Resume Next '## Ignora Errore
			objNewMail.Send strFromEmail, strRecipientsEmail, strSubject, strMessage
			If Err <> 0 Then 
				Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
			End if
			On Error Resume Next '## Ignora Errore
			
			Case "cdosys"
				Set objMessage = CreateObject("CDO.Message") 
				objMessage.From = strSender				
				'objMessage.Sender  = strSender
				objMessage.TextBody = strMessage
				objMessage.To = strRecipientsEmail 
				objMessage.Subject = strSubject 
				objMessage.Send 
				If Err <> 0 Then 
				Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
				End if
				On Error Resume Next '## Ignore Errors
				
		Case "chilicdonts"
			Set objNewMail = Server.CreateObject ("CDONTS.NewMail")
			On Error Resume Next '## Ignora Errore
			objNewMail.Host = mailServer
			objNewMail.To = strRecipientsEmail
			objNewMail.From = strFromEmail
			objNewMail.Subject = strSubject
			objNewMail.Body = strMessage
			objNewMail.Send
			If Err <> 0 Then 
				Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
			End if
			On Error Resume Next '## Ignora Errore
		Case "jmail"
			Set objNewMail = Server.CreateObject("Jmail.smtpmail")
			objNewMail.ServerAddress = mailServer
			objNewMail.AddRecipient strRecipientsEmail
			objNewMail.Sender = strFromEmail
			objNewMail.Subject = strSubject
			objNewMail.Body = strMessage
			objNewMail.Priority = 3
			On Error Resume Next '## Ignora Errore
			objNewMail.Execute
			If Err <> 0 Then 
				Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
			End if
		Case "jmail4"
			Set objNewMail = Server.CreateObject("Jmail.Message")
			'objNewMail.MailServerUserName = "myUserName"
			'objNewMail.MailServerPassword = "MyPassword"
			objNewMail.From = strFromEmail
			objNewMail.FromName = strFromName
			objNewMail.AddRecipient strRecipientsEmail, strRecipientsName
			objNewMail.Subject = strSubject
			objNewMail.Body = strMessage
			On Error Resume Next '## Ignore Errors
			objNewMail.Send(mailServer)
			If Err <> 0 Then 
				Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
			End if
		Case "smtp"
			Set objNewMail = Server.CreateObject("SmtpMail.SmtpMail.1")
			objNewMail.MailServer = mailServer
			objNewMail.Recipients = strRecipientsEmail
			objNewMail.Sender = strFromEmail
			objNewMail.Subject = strSubject
			objNewMail.Message = strMessage
			On Error Resume Next '## Ignore Errors
			objNewMail.SendMail2
			If Err <> 0 Then 
				Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
			End if
	End Select
	Set objNewMail = Nothing
	On Error Goto 0
	mailSent = True
ElseIf Request.QueryString("step") = "3" AND Request.QueryString("userCode") = "" Then
	mailSent = False
	emptyValue = True
Else
	mailSent = False
End If
%>
 

TekNoMaster

Utente Attivo
19 Giu 2007
35
0
0
Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/public/registrazione_e_gestione_utenti/recupera_password.asp, line 133

800401f3

ecco l'errore!

nn capisco perkè

non vorrei approfittare ma mi farebbe comodo, non potresti passarmi in un zip tutti file, visto che a te funge tutto?


ma come metodo di invio posta cosa metti? ho provato smtp cdonts eccma nn mi va nemmeno uno

l'hosting che uso è aruba


Cmq grazie per l'aiuto fatomi fin ora
 

serpico

Utente Attivo
22 Ago 2004
56
0
0
su aruba devi necessariamente far girtare il cdosys (parte che ho modificato nel codice che ti ho postato) come smtp (sei su aruba quindi 2003, ricordati quindi anche dei percorsi assoluti) metti localhost! famme sapé!
 

TekNoMaster

Utente Attivo
19 Giu 2007
35
0
0
assurdo, adesso va ma nn arrivano le email


Case "CDOSYS"
Dim objCDOSYSCon
Set objCDOSYSMail = Server.CreateObject("CDO.Message")
Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strSmtpServer
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
objCDOSYSCon.Fields.Update
Set objCDOSYSMail.Configuration = objCDOSYSCon
objCDOSYSMail.From = Uguestname & "<" & IndirizzoEmail & ">"
objCDOSYSMail.To = "<" & IndirizzoEmail & ">"
objCDOSYSMail.Subject = OggettoEmail
objCDOSYSMail.HTMLBody = CorpoEmail
If NOT strSmtpServer = "" Then objCDOSYSMail.Send
Set objCDOSYSMail = Nothing


cosa potrebbe essere?
 

TekNoMaster

Utente Attivo
19 Giu 2007
35
0
0
aaaaaaaa, spet! sempre + assurdo!

le email arrivano ai soli indirizzi di aruba.

Mah quando si registra un utente l'email nn arriva a lui bensì a me, com'è possibile?
 

serpico

Utente Attivo
22 Ago 2004
56
0
0
un prob alla volta!
prob registrazione:
posta il codice della registyrazione (ricordo di aver cambiato anche quello!)
 

serpico

Utente Attivo
22 Ago 2004
56
0
0
In ogni caso il codice della registrazione che ho modificato è questo... confrontalo col tuo!
poi volevo chiederti... da dove hai estrapolato lo script di cdosys che hai postato sopra?!

Codice:
<!--#include file="inc_common.asp" -->
<% Server.Execute("header.asp") %>
<%
If Request.QueryString("step") = 2 Then
	Dim str_db_username				'username
	Dim str_wanted_username			'richiesto username
	Dim str_new_usercode			'generare user code
	Dim int_random_number			'numero random
	Dim int_random_number_max		'valore massimo del numero randomico
	Dim int_random_number_min		'valore minimo del numero randomico
	Dim str_password				'password
	Dim rs_new_user					'Recordsheet per il nuovo utente
	Dim rs_check_username			'Recordsheet per controllare username

	'Richiamo i valori
	str_wanted_username = Request.form("username")
	str_password = Request.form("pw1")

	'Creo una nuova stringa SQL
	strSQL = "SELECT * FROM tbl_authors"

	'Creo un nuovo RecordSet
	set rs_check_username=Server.CreateObject("ADODB.Recordset")

	'Apro il recordset e eseguo SQL
	rs_check_username.Open strSQL,adoCon

	'Eseguo un ciclo fino alla fine
	Do While NOT rs_check_username.EOF
		'Set variable to hold a database username value
		str_db_username = rs_check_username("name")
	
		'See l'username è già inserito nel database response.Redirect("errore.asp")
		If str_db_username = str_wanted_username Then Response.Redirect("errore.asp")
	
		'passo al record successivo
		rs_check_username.MoveNext
	'Loop
	Loop

	rs_check_username.Close
	Set rs_check_username = Nothing

	new_name		= Request.form("username")
	new_email		= Request.form("email")
	new_pass		= Request.form("pw1")
	new_nome    	= Request.form("nome")
	new_cognome    	= Request.form("cognome")
	new_citta		= Request.form("citta")
	new_provincia	= Request.form("provincia")
	new_cap			= Request.form("cap")
	new_authority	= "user"
	new_date		= Now()
	new_code		= str_new_usercode
	new_pagina_web	= Request.form("pagina_web")
	
	If new_name = "" OR new_email = "" OR new_pass = "" OR new_nome = "" OR new_cognome = "" OR new_citta = "" OR new_cap = "" Then
		emptyValue = True
	Else
		If Request.Form("pw1") <> Request.Form("pw2") Then
			badPass = True
		Else
			badPass = False
		End If
		emptyValue = False
	End If

	If emptyValue = False AND badPass = False Then
		'Creo un numero random
		Randomize
		int_random_number_Min = 1
		int_random_number_Max = 999999999
		int_random_number = Int(((int_random_number_Max-int_random_number_Min+1) * Rnd) + int_random_number_Min)
		
		'converto il numero in una stringa
		int_random_number = Cstr(int_random_number)
	
		'concateno username e il numero random
		str_new_usercode = str_wanted_username + int_random_number
	
		'Creo una nuova stringa SQL
		strsql="SELECT * FROM tbl_authors"
	
		'Creo un nuovo recordset
		set rs_new_user = Server.CreateObject("ADODB.Recordset")
	
		rs_new_user.CursorType = 2
		rs_new_user.LockType = 3
	
		'apro recordsheet e eseguo la stringa SQL
		rs_new_user.open strsql,adocon
	
		'setto recordsheet e aggiungo un nuovo record
		rs_new_user.AddNew
	
		'Enter a new record into the database
		rs_new_user.Fields("name")			= new_name
		rs_new_user.Fields("email")			= new_email
		rs_new_user.Fields("pass")			= new_pass
		rs_new_user.Fields("nome")  		= new_nome
		rs_new_user.Fields("cognome")  		= new_cognome
		rs_new_user.Fields("citta")			= new_citta
		rs_new_user.Fields("provincia")		= new_provincia
		rs_new_user.Fields("cap")			= new_cap
		rs_new_user.Fields("authority")		= "user"
		rs_new_user.Fields("dataregistrazione")	= Now
		rs_new_user.Fields("code")			= str_new_usercode
		rs_new_user.Fields("pagina_web")	= Request.form("pagina_web")
			If conf_email = "False" Then
			rs_new_user.Fields("stato")	= "Active"
		End If	
	
		'aggiorno il recordset
		rs_new_user.Update
	
		rs_new_user.Close
		set rs_new_user = Nothing
	
		curSubFolders = ""
		tempArray = Split(Replace(Request.ServerVariables("URL"), "\", "/"), "/")
		Dim i
		i = 0
		For each chunk in tempArray
			i = i + 1
		Next
		For j = 0 to (i-2)
			curSubFolders = curSubFolders & tempArray(j) & "/"
		Next

		If conf_email = "True" AND tipoMail <> "None" Then
			MailOrder = "[email protected]" 'Indirizzo mittente ordini
			strSender = MailOrder  
			strFromName			= pageTitle & " Webmaster"
			'strFromEmail		= adminEmail
			strRecipientsEmail	= new_email
			strRecipientsName	= new_name
			strSubject			= pageTitle & " Registration"
			strMessage			= "------------------------------------------" & vbCrLf & _
			"Grazie per esserti registrato, " & strRecipientsName & vbCrLf & _
			"Per completare la registrazione, clikka sul seguente indirizzo:" & vbCrLf & _
			"	" & homePage & curSubFolders & "attivo.asp?userCode=" & str_new_usercode & vbCrLf & vbCrLf & _
			"Grazie," & vbCrLf & pageTitle & " Webmaster"
	
			Select Case LCase(tipoMail)
				Case "aspemail"
					Set objNewMail = Server.CreateObject("Persits.MailSender")
					objNewMail.Host = mailServer
					objNewMail.FromName = strFromName
					objNewMail.AddReplyTo strFromEmail
					objNewMail.From = strFromEmail
					objNewMail.AddAddress strRecipientsEmail, strRecipientsName
					objNewMail.Subject = strSubject
					objNewMail.Body = strMessage
					On Error Resume Next '## Ignora Errore
					objNewMail.Send
					If Err <> 0 Then 
						Err_Msg = Err_Msg & "<li>Impossibile spedire l'email: " & Err.Description & "</li>"
					End if
				Case "aspmail"
					Set objNewMail = Server.CreateObject("SMTPsvg.Mailer")
					objNewMail.FromName = strFromName
					objNewMail.FromAddress = strFromEmail
					'objNewMail.AddReplyTo = strFromEmail
					objNewMail.RemoteHost = mailServer
					objNewMail.AddRecipient strRecipientsName, strRecipientsEmail
					objNewMail.Subject = strSubject
					objNewMail.BodyText = strMessage
					On Error Resume Next '## Ignora Errore
					SendOk = objNewMail.SendMail
					If not(SendOk) <> 0 Then 
						Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & objNewMail.Response & "</li>"
					End if
				Case "cdonts"
					Set objNewMail = Server.CreateObject ("CDONTS.NewMail")
					objNewMail.BodyFormat = 1
					objNewMail.MailFormat = 0
					On Error Resume Next '## Ignora Errore
					objNewMail.Send strFromEmail, strRecipientsEmail, strSubject, strMessage
					If Err <> 0 Then 
						Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
					End if
					On Error Resume Next '## Ignora Errore

			Case "cdosys"
				Set objMessage = CreateObject("CDO.Message") 
				objMessage.From = strSender				
				'objMessage.Sender  = strSender
				objMessage.TextBody = strMessage
				objMessage.To = strRecipientsEmail 
				objMessage.Subject = strSubject 
				objMessage.Send 
				If Err <> 0 Then 
				Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
				End if
				On Error Resume Next '## Ignora Errore
					
					
					
				Case "chilicdonts"
					Set objNewMail = Server.CreateObject ("CDONTS.NewMail")
					On Error Resume Next '## Ignora Errore
					objNewMail.Host = mailServer
					objNewMail.To = strRecipientsEmail
					objNewMail.From = strFromEmail
					objNewMail.Subject = strSubject
					objNewMail.Body = strMessage
					objNewMail.Send
					If Err <> 0 Then 
						Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
					End if
					On Error Resume Next '## Ignora Errore
				Case "jmail"
					Set objNewMail = Server.CreateObject("Jmail.smtpmail")
					objNewMail.ServerAddress = mailServer
					objNewMail.AddRecipient strRecipientsEmail
					objNewMail.Sender = strFromEmail
					objNewMail.Subject = strSubject
					objNewMail.Body = strMessage
					objNewMail.Priority = 3
					On Error Resume Next '## Ignora Errore
					objNewMail.Execute
					If Err <> 0 Then 
						Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
					End if
				Case "jmail4"
					Set objNewMail = Server.CreateObject("Jmail.Message")
					'objNewMail.MailServerUserName = "mioUserName"
					'objNewMail.MailServerPassword = "MiaPassword"
					objNewMail.From = strFromEmail
					objNewMail.FromName = strFromName
					objNewMail.AddRecipient strRecipientsEmail, strRecipientsName
					objNewMail.Subject = strSubject
					objNewMail.Body = strMessage
					On Error Resume Next '## Ignora Errore
					objNewMail.Send(mailServer)
					If Err <> 0 Then 
						Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
					End if
				Case "smtp"
					Set objNewMail = Server.CreateObject("SmtpMail.SmtpMail.1")
					objNewMail.MailServer = mailServer
					objNewMail.Recipients = strRecipientsEmail
					objNewMail.Sender = strFromEmail
					objNewMail.Subject = strSubject
					objNewMail.Message = strMessage
					On Error Resume Next '## Ignora Errore
					objNewMail.SendMail2
					If Err <> 0 Then 
						Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
					End if
			End Select
			Set objNewMail = Nothing
			On Error Goto 0
	
			
			Response.Redirect("benvenuto.asp")
		Else
			Session("tmpUN") = new_name
			Response.Redirect("login.asp?disp=login")
		End If
	End If
End If
%>
<!doctype html public "-//w3c//dtd html 3.2//en"><html>

<head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT LANGUAGE="JavaScript">
			<!--
				function DoSubmit(obj) {
				var nome		 = obj.nome.value;
				var cognome		 = obj.cognome.value;
				var username     = obj.username.value;
				var password     = obj.pw1.value;
				var confirmation = obj.pw2.value;
				var email        = obj.email.value;
				var citta		 = obj.citta.value;
				var cap		     = obj.cap.value;
				var strMailFilter   = /^.+@.+\..{2,3}$/;
				var strIllegalChars = /[\(\)\<\>\,\;\:\\\/\*\-\+\=\"\[\]]/;
				      
				var submitform = true;
				var error      = '************************* REGISTRAZIONE *************************\n\n';
				error         += ' Attenzione :   \n\n';

			if (nome.length < 3 ) {
				error     += '    + Nome è un campo richiesto  \n';
				submitform = false;
				}
				if (nome.length > 20 && isNaN(nome) ) {
				error     += '    + Nome può essere massimo 20 caratteri  \n';
				submitform = false;
				}
				if (nome.length > 1 && nome.match(strIllegalChars) ) {
				error     += '    + Nome contiene caratteri non consentiti  \n';
				submitform = false;
				
				}
				
							
				if (cognome.length < 1) {
				error     += '    + Cognome è un campo obbligatorio  \n';
				submitform = false;
				}
	
         		if (cognome.length > 20 ) {
				error     += '    + Cognome può essere massimo 20 caratteri  \n';
				submitform = false;
				}
				if (cognome.length > 1 && cognome.match(strIllegalChars)) {
				error     += '    + Cognome contiene caratteri non consentiti  \n';
				submitform = false;
				}
				
				
						if (username.length < 1) {
				error     += '    + Username è una campo richiesto  \n';
				submitform = false;
				}
				if (username.length > 20) {
				error     += '    + Username può essere massimo 20 caratteri  \n';
				submitform = false;
				}
				if (username.length > 1 && username.match(strIllegalChars)) {
				error     += '    + Nome contiene caratteri non consentiti  \n';
				submitform = false;
				}
				
				if (password.length < 5) {
				error     += '    + Password deve essere minimo 5 caratteri  \n';
				submitform = false;
				}
				if (password.length > 20) {
				error     += '    + Password può essere massimo 20 caratteri  \n';
				submitform = false;
				}
				if (confirmation.length < 1) {
				error     += '    + Conferma password è un campo obbligatorio  \n';
				submitform = false;
				}
				if (password != confirmation) {
				error     += '    + Password non è uguale  \n';
				submitform = false;
				}
				if (email.length < 1) {
				error     += '    + Email è un campo obbligatorio  \n';
				submitform = false;
				}
				
				if (email.length > 30) {
				error     += '    + Email è massimo 30 caratteri  \n';
				submitform = false;
				}
				if (email.length > 1 && email.match(strIllegalChars)) {
				error     += '    + Email contiene caratteri non consentiti  \n';
				submitform = false;
				}
				if (email.length > 1 && !email.match(strIllegalChars) && !(strMailFilter.test(email))) {
				error     += '    + Email non è valida  \n';
				submitform = false;
				}
				
				if (citta.length < 3 ) {
				error     += '    + Citta è un campo richiesto  \n';
				submitform = false;
				}
				if (citta.length > 15 ) {
				error     += '    + Citta può essere massimo 15 caratteri  \n';
				submitform = false;
				}
				if (citta.length > 1 && citta.match(strIllegalChars)) {
				error     += '    + Citta contiene caratteri non consentiti  \n';
				submitform = false;
				}
				
				if (cap.length < 4 ) {
				error     += '    + Cap è un campo richiesto  \n';
				submitform = false;
				}
				
				if (cap.length > 4 && isNaN(cap) ) {
				error     += '    + Cap contiene caratteri non consentiti  \n';
				submitform = false;
				}
				
				if (submitform) {
				obj.submit();
				}
				else {
				error += '\n************************* REGISTRAZIONE *************************\n\n';
				alert (error);
				return false;
				}
				}
				-->
</script>
 

TekNoMaster

Utente Attivo
19 Giu 2007
35
0
0
questo è il tuo codice con i parametri di aruba inseriti (li ho presi su aruba).
il form registrazione va, registra ma nn invia l'email al destinatario ne a me.

HTML:
<!--#include file="inc_common.asp" -->
<% Server.Execute("header.asp") %>
<%
If Request.QueryString("step") = 2 Then
	Dim str_db_username				'username
	Dim str_wanted_username			'richiesto username
	Dim str_new_usercode			'generare user code
	Dim int_random_number			'numero random
	Dim int_random_number_max		'valore massimo del numero randomico
	Dim int_random_number_min		'valore minimo del numero randomico
	Dim str_password				'password
	Dim rs_new_user					'Recordsheet per il nuovo utente
	Dim rs_check_username			'Recordsheet per controllare username

	'Richiamo i valori
	str_wanted_username = Request.form("username")
	str_password = Request.form("pw1")

	'Creo una nuova stringa SQL
	strSQL = "SELECT * FROM tbl_authors"

	'Creo un nuovo RecordSet
	set rs_check_username=Server.CreateObject("ADODB.Recordset")

	'Apro il recordset e eseguo SQL
	rs_check_username.Open strSQL,adoCon

	'Eseguo un ciclo fino alla fine
	Do While NOT rs_check_username.EOF
		'Set variable to hold a database username value
		str_db_username = rs_check_username("name")
	
		'See l'username è già inserito nel database response.Redirect("errore.asp")
		If str_db_username = str_wanted_username Then Response.Redirect("errore.asp")
	
		'passo al record successivo
		rs_check_username.MoveNext
	'Loop
	Loop

	rs_check_username.Close
	Set rs_check_username = Nothing

	new_name		= Request.form("username")
	new_email		= Request.form("email")
	new_pass		= Request.form("pw1")
	new_nome    	= Request.form("nome")
	new_cognome    	= Request.form("cognome")
	new_citta		= Request.form("citta")
	new_provincia	= Request.form("provincia")
	new_cap			= Request.form("cap")
	new_authority	= "user"
	new_date		= Now()
	new_code		= str_new_usercode
	new_pagina_web	= Request.form("pagina_web")
	
	If new_name = "" OR new_email = "" OR new_pass = "" OR new_nome = "" OR new_cognome = "" OR new_citta = "" OR new_cap = "" Then
		emptyValue = True
	Else
		If Request.Form("pw1") <> Request.Form("pw2") Then
			badPass = True
		Else
			badPass = False
		End If
		emptyValue = False
	End If

	If emptyValue = False AND badPass = False Then
		'Creo un numero random
		Randomize
		int_random_number_Min = 1
		int_random_number_Max = 999999999
		int_random_number = Int(((int_random_number_Max-int_random_number_Min+1) * Rnd) + int_random_number_Min)
		
		'converto il numero in una stringa
		int_random_number = Cstr(int_random_number)
	
		'concateno username e il numero random
		str_new_usercode = str_wanted_username + int_random_number
	
		'Creo una nuova stringa SQL
		strsql="SELECT * FROM tbl_authors"
	
		'Creo un nuovo recordset
		set rs_new_user = Server.CreateObject("ADODB.Recordset")
	
		rs_new_user.CursorType = 2
		rs_new_user.LockType = 3
	
		'apro recordsheet e eseguo la stringa SQL
		rs_new_user.open strsql,adocon
	
		'setto recordsheet e aggiungo un nuovo record
		rs_new_user.AddNew
	
		'Enter a new record into the database
		rs_new_user.Fields("name")			= new_name
		rs_new_user.Fields("email")			= new_email
		rs_new_user.Fields("pass")			= new_pass
		rs_new_user.Fields("nome")  		= new_nome
		rs_new_user.Fields("cognome")  		= new_cognome
		rs_new_user.Fields("citta")			= new_citta
		rs_new_user.Fields("provincia")		= new_provincia
		rs_new_user.Fields("cap")			= new_cap
		rs_new_user.Fields("authority")		= "user"
		rs_new_user.Fields("dataregistrazione")	= Now
		rs_new_user.Fields("code")			= str_new_usercode
		rs_new_user.Fields("pagina_web")	= Request.form("pagina_web")
			If conf_email = "False" Then
			rs_new_user.Fields("stato")	= "Active"
		End If	
	
		'aggiorno il recordset
		rs_new_user.Update
	
		rs_new_user.Close
		set rs_new_user = Nothing
	
		curSubFolders = ""
		tempArray = Split(Replace(Request.ServerVariables("URL"), "\", "/"), "/")
		Dim i
		i = 0
		For each chunk in tempArray
			i = i + 1
		Next
		For j = 0 to (i-2)
			curSubFolders = curSubFolders & tempArray(j) & "/"
		Next

		If conf_email = "True" AND tipoMail <> "None" Then
			MailOrder = "[email protected]" 'Indirizzo mittente ordini
			strSender = MailOrder  
			strFromName			= pageTitle & " Webmaster"
			'strFromEmail		= adminEmail
			strRecipientsEmail	= new_email
			strRecipientsName	= new_name
			strSubject			= pageTitle & " Registration"
			strMessage			= "------------------------------------------" & vbCrLf & _
			"Grazie per esserti registrato, " & strRecipientsName & vbCrLf & _
			"Per completare la registrazione, clikka sul seguente indirizzo:" & vbCrLf & _
			"	" & homePage & curSubFolders & "attivo.asp?userCode=" & str_new_usercode & vbCrLf & vbCrLf & _
			"Grazie," & vbCrLf & pageTitle & " Webmaster"
	
			Select Case LCase(tipoMail)
				Case "aspemail"
					Set objNewMail = Server.CreateObject("Persits.MailSender")
					objNewMail.Host = mailServer
					objNewMail.FromName = strFromName
					objNewMail.AddReplyTo strFromEmail
					objNewMail.From = strFromEmail
					objNewMail.AddAddress strRecipientsEmail, strRecipientsName
					objNewMail.Subject = strSubject
					objNewMail.Body = strMessage
					On Error Resume Next '## Ignora Errore
					objNewMail.Send
					If Err <> 0 Then 
						Err_Msg = Err_Msg & "<li>Impossibile spedire l'email: " & Err.Description & "</li>"
					End if
				Case "aspmail"
					Set objNewMail = Server.CreateObject("SMTPsvg.Mailer")
					objNewMail.FromName = strFromName
					objNewMail.FromAddress = strFromEmail
					'objNewMail.AddReplyTo = strFromEmail
					objNewMail.RemoteHost = mailServer
					objNewMail.AddRecipient strRecipientsName, strRecipientsEmail
					objNewMail.Subject = strSubject
					objNewMail.BodyText = strMessage
					On Error Resume Next '## Ignora Errore
					SendOk = objNewMail.SendMail
					If not(SendOk) <> 0 Then 
						Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & objNewMail.Response & "</li>"
					End if
				Case "cdonts"
					Set objNewMail = Server.CreateObject ("CDONTS.NewMail")
					objNewMail.BodyFormat = 1
					objNewMail.MailFormat = 0
					On Error Resume Next '## Ignora Errore
					objNewMail.Send strFromEmail, strRecipientsEmail, strSubject, strMessage
					If Err <> 0 Then 
						Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
					End if
					On Error Resume Next '## Ignora Errore

			Case "CDOSYS"			
			Dim objCDOSYSCon			
			Set objCDOSYSMail = Server.CreateObject("CDO.Message")
		    	Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")        		
	        	objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = strSmtpServer
	        	objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport")  = 25
	        	objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
	        	objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
        		objCDOSYSCon.Fields.Update 		
			Set objCDOSYSMail.Configuration = objCDOSYSCon
			objCDOSYSMail.From = Uguestname & "<" & IndirizzoEmail & ">"
			objCDOSYSMail.To = "<" & IndirizzoEmail & ">"
			objCDOSYSMail.Subject = OggettoEmail
			objCDOSYSMail.HTMLBody = CorpoEmail						
			If NOT strSmtpServer = "" Then objCDOSYSMail.Send				
			Set objCDOSYSMail = Nothing
					
					
					
				Case "chilicdonts"
					Set objNewMail = Server.CreateObject ("CDONTS.NewMail")
					On Error Resume Next '## Ignora Errore
					objNewMail.Host = mailServer
					objNewMail.To = strRecipientsEmail
					objNewMail.From = strFromEmail
					objNewMail.Subject = strSubject
					objNewMail.Body = strMessage
					objNewMail.Send
					If Err <> 0 Then 
						Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
					End if
					On Error Resume Next '## Ignora Errore
				Case "jmail"
					Set objNewMail = Server.CreateObject("Jmail.smtpmail")
					objNewMail.ServerAddress = mailServer
					objNewMail.AddRecipient strRecipientsEmail
					objNewMail.Sender = strFromEmail
					objNewMail.Subject = strSubject
					objNewMail.Body = strMessage
					objNewMail.Priority = 3
					On Error Resume Next '## Ignora Errore
					objNewMail.Execute
					If Err <> 0 Then 
						Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
					End if
				Case "jmail4"
					Set objNewMail = Server.CreateObject("Jmail.Message")
					'objNewMail.MailServerUserName = "mioUserName"
					'objNewMail.MailServerPassword = "MiaPassword"
					objNewMail.From = strFromEmail
					objNewMail.FromName = strFromName
					objNewMail.AddRecipient strRecipientsEmail, strRecipientsName
					objNewMail.Subject = strSubject
					objNewMail.Body = strMessage
					On Error Resume Next '## Ignora Errore
					objNewMail.Send(mailServer)
					If Err <> 0 Then 
						Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
					End if
				Case "smtp"
					Set objNewMail = Server.CreateObject("SmtpMail.SmtpMail.1")
					objNewMail.MailServer = mailServer
					objNewMail.Recipients = strRecipientsEmail
					objNewMail.Sender = strFromEmail
					objNewMail.Subject = strSubject
					objNewMail.Message = strMessage
					On Error Resume Next '## Ignora Errore
					objNewMail.SendMail2
					If Err <> 0 Then 
						Err_Msg = Err_Msg & "<li>Impossibile spedire l'email. Errore: " & Err.Description & "</li>"
					End if
			End Select
			Set objNewMail = Nothing
			On Error Goto 0
	
			
			Response.Redirect("benvenuto.asp")
		Else
			Session("tmpUN") = new_name
			Response.Redirect("login.asp?disp=login")
		End If
	End If
End If
%>
<!doctype html public "-//w3c//dtd html 3.2//en"><html>

<head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <SCRIPT LANGUAGE="JavaScript">
			<!--
				function DoSubmit(obj) {
				var nome		 = obj.nome.value;
				var cognome		 = obj.cognome.value;
				var username     = obj.username.value;
				var password     = obj.pw1.value;
				var confirmation = obj.pw2.value;
				var email        = obj.email.value;
				var citta		 = obj.citta.value;
				var cap		     = obj.cap.value;
				var strMailFilter   = /^.+@.+\..{2,3}$/;
				var strIllegalChars = /[\(\)\<\>\,\;\:\\\/\*\-\+\=\"\[\]]/;
				      
				var submitform = true;
				var error      = '************************* REGISTRAZIONE *************************\n\n';
				error         += ' Attenzione :   \n\n';

			if (nome.length < 3 ) {
				error     += '    + Nome è un campo richiesto  \n';
				submitform = false;
				}
				if (nome.length > 20 && isNaN(nome) ) {
				error     += '    + Nome può essere massimo 20 caratteri  \n';
				submitform = false;
				}
				if (nome.length > 1 && nome.match(strIllegalChars) ) {
				error     += '    + Nome contiene caratteri non consentiti  \n';
				submitform = false;
				
				}
				
							
				if (cognome.length < 1) {
				error     += '    + Cognome è un campo obbligatorio  \n';
				submitform = false;
				}
	
         		if (cognome.length > 20 ) {
				error     += '    + Cognome può essere massimo 20 caratteri  \n';
				submitform = false;
				}
				if (cognome.length > 1 && cognome.match(strIllegalChars)) {
				error     += '    + Cognome contiene caratteri non consentiti  \n';
				submitform = false;
				}
				
				
						if (username.length < 1) {
				error     += '    + Username è una campo richiesto  \n';
				submitform = false;
				}
				if (username.length > 20) {
				error     += '    + Username può essere massimo 20 caratteri  \n';
				submitform = false;
				}
				if (username.length > 1 && username.match(strIllegalChars)) {
				error     += '    + Nome contiene caratteri non consentiti  \n';
				submitform = false;
				}
				
				if (password.length < 5) {
				error     += '    + Password deve essere minimo 5 caratteri  \n';
				submitform = false;
				}
				if (password.length > 20) {
				error     += '    + Password può essere massimo 20 caratteri  \n';
				submitform = false;
				}
				if (confirmation.length < 1) {
				error     += '    + Conferma password è un campo obbligatorio  \n';
				submitform = false;
				}
				if (password != confirmation) {
				error     += '    + Password non è uguale  \n';
				submitform = false;
				}
				if (email.length < 1) {
				error     += '    + Email è un campo obbligatorio  \n';
				submitform = false;
				}
				
				if (email.length > 30) {
				error     += '    + Email è massimo 30 caratteri  \n';
				submitform = false;
				}
				if (email.length > 1 && email.match(strIllegalChars)) {
				error     += '    + Email contiene caratteri non consentiti  \n';
				submitform = false;
				}
				if (email.length > 1 && !email.match(strIllegalChars) && !(strMailFilter.test(email))) {
				error     += '    + Email non è valida  \n';
				submitform = false;
				}
				
				if (citta.length < 3 ) {
				error     += '    + Citta è un campo richiesto  \n';
				submitform = false;
				}
				if (citta.length > 15 ) {
				error     += '    + Citta può essere massimo 15 caratteri  \n';
				submitform = false;
				}
				if (citta.length > 1 && citta.match(strIllegalChars)) {
				error     += '    + Citta contiene caratteri non consentiti  \n';
				submitform = false;
				}
				
				if (cap.length < 4 ) {
				error     += '    + Cap è un campo richiesto  \n';
				submitform = false;
				}
				
				if (cap.length > 4 && isNaN(cap) ) {
				error     += '    + Cap contiene caratteri non consentiti  \n';
				submitform = false;
				}
				
				if (submitform) {
				obj.submit();
				}
				else {
				error += '\n************************* REGISTRAZIONE *************************\n\n';
				alert (error);
				return false;
				}
				}
				-->
</script>
 

serpico

Utente Attivo
22 Ago 2004
56
0
0
hai sostituito il codice (registrazione) tuo con il mio?! fallo a prova a vedere se arriva nella maniera giusta le email! e poi riprova con il recupero password!
 

TekNoMaster

Utente Attivo
19 Giu 2007
35
0
0
bene, la registrazione va e manda l'email, il recupero no!

grazie di tutto


spero possa aiutarmi a sistemare anche quest'ultimo problema
 

serpico

Utente Attivo
22 Ago 2004
56
0
0
aspetta apri la pagina visualizza_profilo.asp (c'è anche lìun erroe, cioè avevo notato che quando sospendevi nu utente non fungeva e il motivo è: "disabled" invece che "attesa") vai alla riga 220 (più o meno) dove c'è scritto questo:

Codice:
<% ElseIf str_users_stato = "Attesa" Then %>
<p align="center">Il tuo account è in Attesa di conferma.&nbsp; 
  Per attivare l'account controllare l'email e clikkare sul link. In caso di problemi contatta il <a href="mailto:<%=adminEmail%>">Webmaster</a>.</p>
<% ElseIf str_users_stato = "Attesa" Then %>

e cambia il secondo attesa con disabled in maniera tale che venga fuori così:

Codice:
<% ElseIf str_users_stato = "Attesa" Then %>
<p align="center">Il tuo account è in Attesa di conferma.&nbsp; 
  Per attivare l'account controllare l'email e clikkare sul link. In caso di problemi contatta il <a href="mailto:<%=adminEmail%>">Webmaster</a>.</p>
<% ElseIf str_users_stato = "Disabled" Then %>
 

serpico

Utente Attivo
22 Ago 2004
56
0
0
fammi capire adesso funge la registrazione?! come si comporta a chi arriva l'email!?
se cmq ti funge riprova adesso con il recupero password e se non funge dimmi qual è l'errore!
 

TekNoMaster

Utente Attivo
19 Giu 2007
35
0
0
si, fatto!

ma nn riesco a recuperare questi dati x email....


se qualcuno li dimentica è a mare. dovrei riuscirci,
oppure inserisco in fondo alla pagina di recupero: se i dati richiesti non vengono recapitati al vostro indirizzo email, effettuare una rischiesta scritta con i vostri dati (nome, cogno ecc): [email protected]
la password vi sarò spedita dopo aver verificato i dati

ma dal mio pannello nn è consentito vedere le pass, dovrei accedere al db e leggerle
 

serpico

Utente Attivo
22 Ago 2004
56
0
0
boh! guarda è sicuro che funge! sia l'invio dell'email quando ti registri sia il recupero password guarda bene se hai sostituito bene il codice!
 

TekNoMaster

Utente Attivo
19 Giu 2007
35
0
0
SERPICO: sto preparandoti una statua 3D te renderizzo su una foto se vui!

manda la foto del paesaggio e ti piazzo li la statua


Grazie di Tutto funzia tutto bien!


:p
 

TekNoMaster

Utente Attivo
19 Giu 2007
35
0
0
solo un piccolo chiarimento.

Trovo una certa complicazione al momento di proteggere le pagine inserendo il tag
HTML:
<!--#Include File="inc_common.asp" -->
<!--#Include File="inc_checklogin.asp" -->

Se la pagina .asp da proteggere si trova nella cartella dove si trovano i file:
-inc_common.asp
-inc_checklogin.asp
funge tutto alla grande ma, quando il file da proteggere si trova in un'altra cartella allora viene fuori un problemino.

Ho provato in molti modi:

<!--#Include File="../public/registrazione_e_gestione_utenti/inc_common.asp" -->
<!--#Include File="../public/registrazione_e_gestione_utenti/inc_checklogin.asp" -->

oppure
<!--#Include File="http://www.teknograph.it/public/registrazione_e_gestione_utenti/inc_common.asp" -->
<!--#Include File="http://www.teknograph.it/public/registrazione_e_gestione_utenti/inc_checklogin.asp" -->

come sistemo?

Non è possibile proteggere file esterni alla cartella del tool?

Spero che sia risolvibile

saluti
tekno
 
Discussioni simili
Autore Titolo Forum Risposte Data
redevilduil recuperare password tramite e-mail PHP 1
M [Risolto] Recuperare la password con Asp Classic ASP 43
D recuperare password PHP 4
N Recuperare la password di amministratore di WinXP Hardware 0
P Access: recuperare Indice dopo un insert into MS Access 0
M recuperare credenziali di rete Reti LAN e Wireless 0
M Come recuperare molteplici input form PHP 1
A recuperare i dati passati nel post PHP 1
A recuperare data creazione di un file PHP 6
R Scorporare array e recuperare record tabella PHP 10
M Recuperare valore PHP 5
A [WordPress] Recuperare testo articoli da sito danneggiato WordPress 1
M [PHP] Recuperare coppia con valori i valori MAX e coppia con valori MIN PHP 26
B [PHP] recuperare IP dei server in load balancing [RISOLTO] PHP 3
M Recuperare ID e usarlo in funzione jQuery 2
S [WordPress] Recuperare l'url immagini in evidenza WordPress 0
S [PHP] recuperare determinato elemento con lo scraping PHP 1
A [PHP] Recuperare indice per inserirlo in un'altra tabella PHP 4
P [PHP] Recuperare dati da una <select> PHP 4
S [PHP] recuperare dato da una tabella PHP 4
N [PHP] recuperare dati da db PHP 4
A [RISOLTO]Recuperare dati inviati con json tramite php PHP 4
F Recuperare dati json con php PHP 2
F Recuperare una stringa in formato json con php PHP 0
G Recuperare dato caricato dinamicamente jQuery 2
S recuperare un dato da una tabella mysql per inserirlo in una casella di input jQuery 3
S recuperare il valore di un campo input cliccando sul relativo dato di una tabella jQuery 0
Metazoo Recuperare variabile php da javascript senza aggiornare pagina PHP 5
S [PHP] Recuperare dato esatto tabella PHP 16
M Come recuperare valori della riga di una tabella creata dinamicamente da un file esterno? Javascript 11
M Recuperare id e nome utente loggato PHP 0
D E-Commerce Recuperare dati da un sito E-Commerce 3
M Recuperare valore array Classic ASP 0
elpirata Recuperare i dati in una select PHP 5
Nik Recuperare ultimo ID inserito PHP 2
Devil-94 Recuperare il valore di un attributo del div tramite ajax. Ajax 3
Devil-94 Recuperare contenuto div Ajax 5
I recuperare testo da una pagina web html Ajax 2
M Recuperare valori da form PHP 2
IImanuII Salvare/recuperare html da un db PHP 5
filippino Recuperare i contenuti di un sito penalizzato SEO e Posizionamento 1
felino [Windows XP] Recuperare file in Word cancellato Windows e Software 4
Violetta De Amicis Recuperare la stringa di un ipertesto con javascript Javascript 1
G JQUERY recuperare il testo selezionato su un paragrafo jQuery 1
M Recuperare dati checkbox in diverse pagine PHP 1
Marcolotto Recuperare data e orario corrente in app Android Sviluppo app per Android 1
Marcolotto Recuperare i crash-data della mia app Android Sviluppo app per Android 1
J Recuperare variabili da php a java Javascript 2
felino Recuperare i livelli (photoshop) da un file JPG Photoshop 5
P [RISOLTO]recuperare dati da tabella jQuery 4

Discussioni simili