Précédent   Forum des professionnels en informatique > Webmasters - Développement Web > Langages serveur > ASP
ASP Forum sur la programmation ASP. Avant de poster : Cours ASP, FAQ ASP
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 23/05/2011, 09h03   #1
Invité de passage
 
Homme jean philipppe
Assistant aux utilisateurs
Inscription : mai 2011
Messages : 16
Détails du profil
Informations personnelles :
Nom : Homme jean philipppe
Localisation : France, Seine et Marne (Île de France)

Informations professionnelles :
Activité : Assistant aux utilisateurs
Secteur : Industrie

Informations forums :
Inscription : mai 2011
Messages : 16
Points : 2
Points : 2
Par défaut formulaire ASP +mot de passe et validation commande

bonjour a tous
je suis un vrais débutant et j'essaie de rendre service a un ami pour son site qui ne fontionne plus entierement depuis le changement d'hebergeur et le concepteur qui a arreté son activité.

J'ai du refaire entierement son formulaire de contact qui maintenant fonctionne avec beaucoup de difficulté par contre je n'arrive pas a trouvé comment avoir le nom des champs dans ce qu'il recoit et rendre les chmaps obligatoire.


voici le code du formulaire.asp :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>CONTACT</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="conso.css" rel="stylesheet" type="text/css">
 
<style type="text/css">
<!--
.Style1 {
	color: #FF0000;
	font-weight: bold;
}
-->
</style>
 
</head>
 
<body link="#000000" vlink="#000000" alink="#000000" leftmargin="1" topmargin="1" marginwidth="1" marginheight="1">
<table width="100%" border="0" cellspacing="1" cellpadding="0" height="100%">
  <tr> 
    <td width="25" rowspan="3" valign="top" background="images/fond.gif"><img src="images/etiquette.gif" width="25" height="300"></td>
    <td height="30" background="images/barreb.gif" > <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td class="T3">&nbsp;</td><br><br>
          <td class="T3b" align="right">Besoin d'un renseignement ? &nbsp;&nbsp;</td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td height="338" valign="top"> 
     <form onSubmit="return ValidateForm()" method="post" action="forminfo.asp" onSubmit="return checkrequired(this)">
		 <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
        <tr> 
          <td colspan="3" align="center">Vous souhaitez écrire au service :&nbsp;
 
 
	<SELECT name="categorie">
		<OPTION VALUE="admin@xxx.xx"selected>Administratif</OPTION>
		<OPTION VALUE="tech@xxx.xx">Technique-Logistique</OPTION>
		<OPTION VALUE="com@xxx.xx">Commercial</OPTION>
			</SELECT>
 
          </tr>
					<tr> 
          <td width="50" height="32" align="center">&nbsp;</td>
          <td>&nbsp;</td>
          <td width="150">&nbsp;<span class="Style1">*</span>: champs obligatoires </td>
        </tr>
				<Tr>
<td colspan="3" valign="top">
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  		 Votre Nom:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="nom" type="text" id="nom" size="30"></p>
			 Votre Société:&nbsp;&nbsp;&nbsp;<input name="societe" type="text" id="societe" size="30"></p>
       Adresse Email:&nbsp;&nbsp;<input name="email" type="text" id="email" size="30"></p>
       Votre question:<textarea name="question" cols="35" rows="10"></textarea></p>
       <input class="fancybut" type="submit" name="Submit" value="Envoyer">
       <input class="fancybut" type="reset" name="Submit2" value="Effacer"></p>
      </form></td>
    <td width="16%" align="right" valign="top"></td>
  </tr>
  </table>
		<tr> 
    <td height="20" align="right">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="images/barreb2.gif">&nbsp;</td>
		  <td width="63" align="right"><a href="javascript:window.close()" onMouseOut="this.style.textDecoration='none'" onMouseOver="this.style.textDecoration='underline'" title="Fermer la fenêtre descriptive"><img src="images/icone/fermer.gif" border="0" width="16" height="16" hspace="3" align="absbottom">Fermer</a>&nbsp;</td>
        </tr>
      </table>
</body>
</html>
Avec cette page impossible egalement de faire fonctionner le choix du destinataire non plus et comment faire pour avoir les champs obligatoire ?

Voici l'autre page forminfo.asp
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<% @LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head> 
<body> 
 
 
<% 
Set Mail = Server.CreateObject("SMTPsvg.Mailer") 'create an Asp mail component.
Mail.FromName   = Request.Form("nom")
Mail.FromAddress= Request.Form("email")
Mail.RemoteHost = "mrelay.perfora.net" ' Serveur pour expédition avec Asp Mail
Mail.AddRecipient "Question site ", "xxx@xxx.xxx"
Mail.Subject    = "QUESTION SITE INTERNET"
Mail.BodyText   = Request.Form("societe")& Chr(13)
Mail.BodyText   = Request.Form("nom")& Chr(13)
Mail.BodyText   = Request.Form ("email")& Chr(13)	
Mail.BodyText   = Request.Form("question")
 
if Mail.SendMail then
 Response.Write "Votre Email nous est bien parvenu. Nous vous répondrons dès que possible.Merci !"
else
 Response.Write "Impossible de transmettre le mail.Verifié que tous les champs soient renseignés " & Mail.Response
end if 
%> 
 
</html>
Si une personne ici pouvait me donner un petit coups de main cela serait super sympas.
Merci d'avance a tous
jp77100 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/05/2011, 11h45   #2
Nouveau Membre du Club
 
Sleeg Adri
Inscription : juillet 2010
Messages : 130
Détails du profil
Informations personnelles :
Nom : Sleeg Adri

Informations forums :
Inscription : juillet 2010
Messages : 130
Points : 38
Points : 38
Salut,

Pour le pour le nom des champs dans le mail :

Code :
1
2
3
4
5
 
Mail.BodyText   = "Société : "& Request.Form("societe")& Chr(13)
Mail.BodyText   = "Nom : "&Request.Form("nom")& Chr(13)
Mail.BodyText   = "Email : "&Request.Form ("email")& Chr(13)    
Mail.BodyText   = "Question : "&Request.Form("question")
Pour faire une vérification et rendre les champs obligatoires, tu peux utiliser javascript.
sleeg est déconnecté   Envoyer un message privé Réponse avec citation 10
Vieux 23/05/2011, 12h55   #3
Invité de passage
 
Homme jean philipppe
Assistant aux utilisateurs
Inscription : mai 2011
Messages : 16
Détails du profil
Informations personnelles :
Nom : Homme jean philipppe
Localisation : France, Seine et Marne (Île de France)

Informations professionnelles :
Activité : Assistant aux utilisateurs
Secteur : Industrie

Informations forums :
Inscription : mai 2011
Messages : 16
Points : 2
Points : 2
Citation:
Envoyé par sleeg Voir le message
Salut,

Pour le pour le nom des champs dans le mail :

Code :
1
2
3
4
5
 
Mail.BodyText   = "Société : "& Request.Form("societe")& Chr(13)
Mail.BodyText   = "Nom : "&Request.Form("nom")& Chr(13)
Mail.BodyText   = "Email : "&Request.Form ("email")& Chr(13)    
Mail.BodyText   = "Question : "&Request.Form("question")
Pour faire une vérification et rendre les champs obligatoires, tu peux utiliser javascript.
Bonjour sleeg

Merci de ta réponse je venais juste de trouver
pour Java alors la je ne connais rien du tout

Il me reste un probleme quand meme a réspoudre c'est le choix de la personne qui doit recevoir l'email :
Dan la premiere page j'ai :
Code :
1
2
3
4
5
<SELECT name="categorie">
        <OPTION VALUE="admin@xxx.xx"selected>Administratif</OPTION>
        <OPTION VALUE="tech@xxx.xx">Technique-Logistique</OPTION>
        <OPTION VALUE="com@xxx.xx">Commercial</OPTION>
            </SELECT>
et dans la deuxieme je ne sais pas qu'ele balise je dois mettre afin que cela fonctionne dans cette partie je pense :
Code :
1
2
3
4
5
6
7
8
9
10
11
<% 
Set Mail = Server.CreateObject("SMTPsvg.Mailer") 'create an Asp mail component.
Mail.FromName   = Request.Form("nom")
Mail.FromAddress= Request.Form("email")
Mail.RemoteHost = "mrelay.perfora.net" ' Serveur pour expédition avec Asp Mail
Mail.AddRecipient "Question site ", "xxx@xxx.xxx"
Mail.Subject    = "QUESTION SITE INTERNET"
Mail.BodyText   = Request.Form("societe")& Chr(13)
Mail.BodyText   = Request.Form("nom")& Chr(13)
Mail.BodyText   = Request.Form ("email")& Chr(13)    
Mail.BodyText   = Request.Form("question")
merci beaucoup de ton aide.

J'ai encore 2 autres fichier apres l'oubli du mot de passe et la validation commande je ne suis pas sortie
Merci encore
jp77100 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/05/2011, 13h46   #4
Nouveau Membre du Club
 
Sleeg Adri
Inscription : juillet 2010
Messages : 130
Détails du profil
Informations personnelles :
Nom : Sleeg Adri

Informations forums :
Inscription : juillet 2010
Messages : 130
Points : 38
Points : 38
Pour recevoir l'adresse de l'adresse Email en fonction de celle qui a été choisie :
Code :
1
2
 
Mail.AddRecipient "Question site ", Request.Form("categorie")
Citation:
pour Java alors la je ne connais rien du tout
Attention, Javascript ce n'est pas du java...

Sinon en tapant "Validation formulaire javascript" dans google tu devrais trouver rapidement un tuto...
sleeg est déconnecté   Envoyer un message privé Réponse avec citation 10
Vieux 23/05/2011, 14h41   #5
Invité de passage
 
Homme jean philipppe
Assistant aux utilisateurs
Inscription : mai 2011
Messages : 16
Détails du profil
Informations personnelles :
Nom : Homme jean philipppe
Localisation : France, Seine et Marne (Île de France)

Informations professionnelles :
Activité : Assistant aux utilisateurs
Secteur : Industrie

Informations forums :
Inscription : mai 2011
Messages : 16
Points : 2
Points : 2
Merci sleeg

C'etait pourtant tout bete mais je n'avais pas trouvé.



Encore 2 fichiers, aurait tu la possibilité de m'aider un peu ?

Merci de ton aide

jean philippe
jp77100 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/05/2011, 15h33   #6
Nouveau Membre du Club
 
Sleeg Adri
Inscription : juillet 2010
Messages : 130
Détails du profil
Informations personnelles :
Nom : Sleeg Adri

Informations forums :
Inscription : juillet 2010
Messages : 130
Points : 38
Points : 38
Oui tu peux demander ce que tu as besoin ici... quels sont ces deux fichiers?
sleeg est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/05/2011, 16h04   #7
Invité de passage
 
Homme jean philipppe
Assistant aux utilisateurs
Inscription : mai 2011
Messages : 16
Détails du profil
Informations personnelles :
Nom : Homme jean philipppe
Localisation : France, Seine et Marne (Île de France)

Informations professionnelles :
Activité : Assistant aux utilisateurs
Secteur : Industrie

Informations forums :
Inscription : mai 2011
Messages : 16
Points : 2
Points : 2
Citation:
Envoyé par sleeg Voir le message
Oui tu peux demander ce que tu as besoin ici... quels sont ces deux fichiers?
Merci sleeg car cela fait 15 joujrs que je galere sur le site de mon ami. De plus ce site a été fait il y a 7 ans et je pense un peu n'importe comment

ce fichier la interroge une base .mdb pour retrouver le mot de passe oublié :

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
 
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>Mot de Passe</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="conso.css" rel="stylesheet" type="text/css">
 
</head>
 
<body link="#000000" vlink="#000000" alink="#000000" leftmargin="1" topmargin="1" marginwidth="1" marginheight="1">
<table width="100%" border="0" cellspacing="1" cellpadding="0" height="100%">
  <tr> 
    <td width="25" rowspan="3" valign="top" background="images/fond.gif"><img src="images/etiquette.gif" width="25" height="300"></td>
    <td height="30" background="images/barreb.gif" > <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td class="T3">&nbsp;</td>
          <td class="T3b" align="right">Oubli de votre mot de passe&nbsp;&nbsp;</td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td height="338" valign="top"> 
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
        <tr> 
          <td align="center">&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td width="50" height="32" align="center"><img src="images/icone/mail.jpg" width="32" height="32"></td>
          <td><table width="250" border="0" cellspacing="0" cellpadding="0" height="32">
              <tr> 
                <td height="12" background="images/barre.gif">Oubli de votre mot 
                  de Passe</td>
              </tr>
            </table></td>
          <td width="150">&nbsp;</td>
        </tr>
        <tr> 
          <td height="32">&nbsp;</td>
          <td colspan="2" valign="top"><strong>Indiquez l'
 
 
 Email
 
 de votre compte :</strong><br>
          <br>
          Nous vous enverrons automatiquement vos identifiants </td>
        </tr>
        <tr> 
          <td height="32" align="center">&nbsp;</td>
          <td>&nbsp;</td>
          <td align="center">&nbsp;</td>
        </tr>
     <form onSubmit="return ValidateForm()" method="post" action="oubli2.asp" onSubmit="return checkrequired(this)">
        <tr> 
          <td height="32">&nbsp;</td>
          <td colspan="2" valign="center">
            <div align="center">
              <input type="text" name="email" value="votre Email" size="40">
            </div></td>
        </tr>
 
 
        <tr> 
          <td height="32">&nbsp;</td>
          <td colspan="2" ><div align="center">
       <input class="fancybut" type="submit" name="Submit" value="Envoyer votre demande">
          </div></td>
        </tr>
</form>
        <tr> 
          <td  align="center">&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td height="40">&nbsp;</td>
          <td valign="top">&nbsp;</td>
          <td valign="top">&nbsp;</td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td valign="top">&nbsp;</td>
          <td valign="top">&nbsp;</td>
        </tr>
      </table> 
    </td>
  </tr>
  <tr> 
    <td height="20" align="right">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="images/barreb2.gif">&nbsp;</td>
		  <td width="63" align="right"><a href="javascript:window.close()" onMouseOut="this.style.textDecoration='none'" onMouseOver="this.style.textDecoration='underline'" title="Fermer la fenêtre descriptive"><img src="images/icone/fermer.gif" border="0" width="16" height="16" hspace="3" align="absbottom">Fermer</a>&nbsp;</td>
        </tr>
      </table>
	</td>
  </tr>
</table>
</body>
</html>
et celui ci envoie le mot de passe oublié :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
 
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
 
<% email=request.form("email") %>
 
<% if email="" then %>
<script language="javascript">
alert('E-mail Illegal');
history.back();
</script>
<%end if%>
 
 
<% 
Set Conn = Server.CreateObject("ADODB.Connection")
FilePath = Server.MapPath("/db/******.mdb")
Conn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & FilePath & ";" 
%>
 
<% sql3 = "select * from client WHERE EMAIL='"&email&"' " %>
<% Set RSLOGIN2=Conn.execute(sql3) %>
 
<%if not RSLOGIN2.eof then%>
<%valemail= email & " : vos identifiants ont été envoyés par email." %>
<% 
Set Mail = Server.CreateObject("SMTPsvg.Mailer") 'create an Asp mail component.
Mail.RemoteHost = "mrelay.perfora.net" ' Serveur pour expédition avec Asp Mail
Mail.From = email ' Adresse de l'expéditeur
Mail.FromName = "*******" ' Nom de l'expéditeur
Mail.AddAddress email, "CLients *******"
Mail.AddReplyTo "contact@*******.com"
Mail.Subject = "IDENTIFIANTS : Oubli de votre mot de passe"
Mail.Body = "Vos identifiants ******* " & Chr(13) & Chr(10) & _
"Login : " & RSLOGIN2("LOGIN") & Chr(13) & Chr(10) & _
"Pass : " & RSLOGIN2("PASS") & Chr(13) & Chr(10) & _
"Bonne Visite."
 
On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "Erreur: " & Err.Description
End If
 %>
<%else%>
<%valemail= email & " : vos identifiants sont introuvables." %>
<%end if%>
 
 
<html>
<head>
<title>Mot de Passe</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="conso.css" rel="stylesheet" type="text/css">
 
</head>
 
<body link="#000000" vlink="#000000" alink="#000000" leftmargin="1" topmargin="1" marginwidth="1" marginheight="1">
<table width="100%" border="0" cellspacing="1" cellpadding="0" height="100%">
  <tr> 
    <td width="25" rowspan="3" valign="top" background="images/fond.gif"><img src="images/etiquette.gif" width="25" height="300"></td>
    <td height="30" background="images/barreb.gif" > <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td class="T3">&nbsp;</td>
          <td class="T3b" align="right">Oubli de votre mot de passe&nbsp;&nbsp;</td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td height="338" valign="top"> 
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
        <tr> 
          <td align="center">&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td width="50" height="32" align="center"><img src="images/icone/mail.jpg" width="32" height="32"></td>
          <td><table width="250" border="0" cellspacing="0" cellpadding="0" height="32">
              <tr> 
                <td height="12" background="images/barre.gif">Oubli de votre mot 
                  de Passe</td>
              </tr>
            </table></td>
          <td width="150">&nbsp;</td>
        </tr>
        <tr> 
          <td height="32">&nbsp;</td>
          <td colspan="2" valign="top"><strong>Indiquez l'
 
 
 Email
 
 de votre compte :</strong><br>
          <br>
          Nous vous enverrons automatiquement vos identifiants </td>
        </tr>
        <tr> 
          <td height="32" align="center">&nbsp;</td>
          <td>&nbsp;</td>
          <td align="center">&nbsp;</td>
        </tr><form name="form1" method="post" action="oubli2.asp">
        <tr> 
          <td height="32">&nbsp;</td>
          <td colspan="2" valign="center">
            <div align="center"><%= valemail %></div></td>
        </tr>
 
 
        <tr> 
          <td height="32">&nbsp;</td>
          <td colspan="2" ><div align="center">
            <input type="button" name="Submit" value="Retour" onClick="history.back();">
          </div></td>
        </tr>
</form>
        <tr> 
          <td  align="center">&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td height="40">&nbsp;</td>
          <td valign="top">&nbsp;</td>
          <td valign="top">&nbsp;</td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td valign="top">&nbsp;</td>
          <td valign="top">&nbsp;</td>
        </tr>
      </table> 
    </td>
  </tr>
  <tr> 
    <td height="20" align="right">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="images/barreb2.gif">&nbsp;</td>
		  <td width="63" align="right"><a href="javascript:window.close()" onMouseOut="this.style.textDecoration='none'" onMouseOver="this.style.textDecoration='underline'" title="Fermer la fenêtre descriptive"><img src="images/icone/fermer.gif" border="0" width="16" height="16" hspace="3" align="absbottom">Fermer</a>&nbsp;</td>
        </tr>
      </table>
	</td>
  </tr>
</table>
</body>
</html>
et j'ai beaucoup de mal a la faire fonctionné avec ASP Mail car avant c'etait Persits.MailSender a la place de SMTPsvg.Mailer et la façon d'ecrire les fichiers n'est plus la meme

Merci d'avance pour ton aide.
Jean philippe
jp77100 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/05/2011, 16h09   #8
Membre expérimenté
 
Avatar de tumoo
 
Homme
Développeur informatique
Inscription : janvier 2011
Messages : 309
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 22
Localisation : France, Charente Maritime (Poitou Charente)

Informations professionnelles :
Activité : Développeur informatique
Secteur : Industrie

Informations forums :
Inscription : janvier 2011
Messages : 309
Points : 550
Points : 550


utilise la balise code pour plus de lisibilité
c'est le bouton # au dessus de la zone de texte où tu rédiges ton message

car présenté comme ça, ça donne pas très envie de se pencher sur ton problème
tumoo est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/05/2011, 16h23   #9
Invité de passage
 
Homme jean philipppe
Assistant aux utilisateurs
Inscription : mai 2011
Messages : 16
Détails du profil
Informations personnelles :
Nom : Homme jean philipppe
Localisation : France, Seine et Marne (Île de France)

Informations professionnelles :
Activité : Assistant aux utilisateurs
Secteur : Industrie

Informations forums :
Inscription : mai 2011
Messages : 16
Points : 2
Points : 2
Merci du tuyau tumoo je savais pas
Cordialement
jp77100 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/05/2011, 16h42   #10
Membre expérimenté
 
Avatar de tumoo
 
Homme
Développeur informatique
Inscription : janvier 2011
Messages : 309
Détails du profil
Informations personnelles :
Sexe : Homme
Âge : 22
Localisation : France, Charente Maritime (Poitou Charente)

Informations professionnelles :
Activité : Développeur informatique
Secteur : Industrie

Informations forums :
Inscription : janvier 2011
Messages : 309
Points : 550
Points : 550
Pas de soucis
Par contre, je ne connais pas le mailing en ASP, je ne pourrais pas t'aider là dessus
tumoo est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 23/05/2011, 16h45   #11
Invité de passage
 
Homme jean philipppe
Assistant aux utilisateurs
Inscription : mai 2011
Messages : 16
Détails du profil
Informations personnelles :
Nom : Homme jean philipppe
Localisation : France, Seine et Marne (Île de France)

Informations professionnelles :
Activité : Assistant aux utilisateurs
Secteur : Industrie

Informations forums :
Inscription : mai 2011
Messages : 16
Points : 2
Points : 2
Merci quand meme et apres cette partie il y a encore la validation de la commande avec envoie email automatique mais cette fois ci avec
mySmartMail

encore autre chose

Merci quand meme
jp77100 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/05/2011, 11h28   #12
Modérateur
 
Avatar de kaiser59
 
Inscription : novembre 2005
Messages : 1 246
Détails du profil
Informations personnelles :
Âge : 32

Informations forums :
Inscription : novembre 2005
Messages : 1 246
Points : 1 203
Points : 1 203
Envoyer un message via MSN à kaiser59
Salut,

Citation:
Envoyé par jp77100 Voir le message
Merci sleeg car cela fait 15 joujrs que je galere sur le site de mon ami. De plus ce site a été fait il y a 7 ans et je pense un peu n'importe comment

ce fichier la interroge une base .mdb pour retrouver le mot de passe oublié :

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
 
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>Mot de Passe</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="conso.css" rel="stylesheet" type="text/css">
 
</head>
 
<body link="#000000" vlink="#000000" alink="#000000" leftmargin="1" topmargin="1" marginwidth="1" marginheight="1">
<table width="100%" border="0" cellspacing="1" cellpadding="0" height="100%">
  <tr> 
    <td width="25" rowspan="3" valign="top" background="images/fond.gif"><img src="images/etiquette.gif" width="25" height="300"></td>
    <td height="30" background="images/barreb.gif" > <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td class="T3">&nbsp;</td>
          <td class="T3b" align="right">Oubli de votre mot de passe&nbsp;&nbsp;</td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td height="338" valign="top"> 
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
        <tr> 
          <td align="center">&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td width="50" height="32" align="center"><img src="images/icone/mail.jpg" width="32" height="32"></td>
          <td><table width="250" border="0" cellspacing="0" cellpadding="0" height="32">
              <tr> 
                <td height="12" background="images/barre.gif">Oubli de votre mot 
                  de Passe</td>
              </tr>
            </table></td>
          <td width="150">&nbsp;</td>
        </tr>
        <tr> 
          <td height="32">&nbsp;</td>
          <td colspan="2" valign="top"><strong>Indiquez l'
 
 
 Email
 
 de votre compte :</strong><br>
          <br>
          Nous vous enverrons automatiquement vos identifiants </td>
        </tr>
        <tr> 
          <td height="32" align="center">&nbsp;</td>
          <td>&nbsp;</td>
          <td align="center">&nbsp;</td>
        </tr>
     <form onSubmit="return ValidateForm()" method="post" action="oubli2.asp" onSubmit="return checkrequired(this)">
        <tr> 
          <td height="32">&nbsp;</td>
          <td colspan="2" valign="center">
            <div align="center">
              <input type="text" name="email" value="votre Email" size="40">
            </div></td>
        </tr>
 
 
        <tr> 
          <td height="32">&nbsp;</td>
          <td colspan="2" ><div align="center">
       <input class="fancybut" type="submit" name="Submit" value="Envoyer votre demande">
          </div></td>
        </tr>
</form>
        <tr> 
          <td  align="center">&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td height="40">&nbsp;</td>
          <td valign="top">&nbsp;</td>
          <td valign="top">&nbsp;</td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td valign="top">&nbsp;</td>
          <td valign="top">&nbsp;</td>
        </tr>
      </table> 
    </td>
  </tr>
  <tr> 
    <td height="20" align="right">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="images/barreb2.gif">&nbsp;</td>
		  <td width="63" align="right"><a href="javascript:window.close()" onMouseOut="this.style.textDecoration='none'" onMouseOver="this.style.textDecoration='underline'" title="Fermer la fenêtre descriptive"><img src="images/icone/fermer.gif" border="0" width="16" height="16" hspace="3" align="absbottom">Fermer</a>&nbsp;</td>
        </tr>
      </table>
	</td>
  </tr>
</table>
</body>
</html>
et celui ci envoie le mot de passe oublié :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
 
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
 
<% email=request.form("email") %>
 
<% if email="" then %>
<script language="javascript">
alert('E-mail Illegal');
history.back();
</script>
<%end if%>
 
 
<% 
Set Conn = Server.CreateObject("ADODB.Connection")
FilePath = Server.MapPath("/db/******.mdb")
Conn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & FilePath & ";" 
%>
 
<% sql3 = "select * from client WHERE EMAIL='"&email&"' " %>
<% Set RSLOGIN2=Conn.execute(sql3) %>
 
<%if not RSLOGIN2.eof then%>
<%valemail= email & " : vos identifiants ont été envoyés par email." %>
<% 
Set Mail = Server.CreateObject("SMTPsvg.Mailer") 'create an Asp mail component.
Mail.RemoteHost = "mrelay.perfora.net" ' Serveur pour expédition avec Asp Mail
Mail.From = email ' Adresse de l'expéditeur
Mail.FromName = "*******" ' Nom de l'expéditeur
Mail.AddAddress email, "CLients *******"
Mail.AddReplyTo "contact@*******.com"
Mail.Subject = "IDENTIFIANTS : Oubli de votre mot de passe"
Mail.Body = "Vos identifiants ******* " & Chr(13) & Chr(10) & _
"Login : " & RSLOGIN2("LOGIN") & Chr(13) & Chr(10) & _
"Pass : " & RSLOGIN2("PASS") & Chr(13) & Chr(10) & _
"Bonne Visite."
 
On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "Erreur: " & Err.Description
End If
 %>
<%else%>
<%valemail= email & " : vos identifiants sont introuvables." %>
<%end if%>
 
 
<html>
<head>
<title>Mot de Passe</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="conso.css" rel="stylesheet" type="text/css">
 
</head>
 
<body link="#000000" vlink="#000000" alink="#000000" leftmargin="1" topmargin="1" marginwidth="1" marginheight="1">
<table width="100%" border="0" cellspacing="1" cellpadding="0" height="100%">
  <tr> 
    <td width="25" rowspan="3" valign="top" background="images/fond.gif"><img src="images/etiquette.gif" width="25" height="300"></td>
    <td height="30" background="images/barreb.gif" > <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td class="T3">&nbsp;</td>
          <td class="T3b" align="right">Oubli de votre mot de passe&nbsp;&nbsp;</td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td height="338" valign="top"> 
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
        <tr> 
          <td align="center">&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td width="50" height="32" align="center"><img src="images/icone/mail.jpg" width="32" height="32"></td>
          <td><table width="250" border="0" cellspacing="0" cellpadding="0" height="32">
              <tr> 
                <td height="12" background="images/barre.gif">Oubli de votre mot 
                  de Passe</td>
              </tr>
            </table></td>
          <td width="150">&nbsp;</td>
        </tr>
        <tr> 
          <td height="32">&nbsp;</td>
          <td colspan="2" valign="top"><strong>Indiquez l'
 
 
 Email
 
 de votre compte :</strong><br>
          <br>
          Nous vous enverrons automatiquement vos identifiants </td>
        </tr>
        <tr> 
          <td height="32" align="center">&nbsp;</td>
          <td>&nbsp;</td>
          <td align="center">&nbsp;</td>
        </tr><form name="form1" method="post" action="oubli2.asp">
        <tr> 
          <td height="32">&nbsp;</td>
          <td colspan="2" valign="center">
            <div align="center"><%= valemail %></div></td>
        </tr>
 
 
        <tr> 
          <td height="32">&nbsp;</td>
          <td colspan="2" ><div align="center">
            <input type="button" name="Submit" value="Retour" onClick="history.back();">
          </div></td>
        </tr>
</form>
        <tr> 
          <td  align="center">&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td height="40">&nbsp;</td>
          <td valign="top">&nbsp;</td>
          <td valign="top">&nbsp;</td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td valign="top">&nbsp;</td>
          <td valign="top">&nbsp;</td>
        </tr>
      </table> 
    </td>
  </tr>
  <tr> 
    <td height="20" align="right">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="images/barreb2.gif">&nbsp;</td>
		  <td width="63" align="right"><a href="javascript:window.close()" onMouseOut="this.style.textDecoration='none'" onMouseOver="this.style.textDecoration='underline'" title="Fermer la fenêtre descriptive"><img src="images/icone/fermer.gif" border="0" width="16" height="16" hspace="3" align="absbottom">Fermer</a>&nbsp;</td>
        </tr>
      </table>
	</td>
  </tr>
</table>
</body>
</html>
et j'ai beaucoup de mal a la faire fonctionné avec ASP Mail car avant c'etait Persits.MailSender a la place de SMTPsvg.Mailer et la façon d'ecrire les fichiers n'est plus la meme

Merci d'avance pour ton aide.
Jean philippe
Ta première page n’interroge pas la BDD c'est juste un formulaire.
De plus, on ne vérifie pas uniquement le formulaire en js c'est juste pour faire beau ça. Il faut aussi vérifier du coté asp. A ton avis que se passe t'il si je desactive js...

Enlève le ça t’empêche de voir la vrai raison du problème. Enfin, si ton hébergeur propose un composant mail il te propose forcement un exemple de script.

Procède par étape, si tu n'arrives pas à envoyer :
- afficher les données reçu en l'occurence email un
Code asp :
response.write email
si ok
affiche la comparaison avec le résultat de la requête
etc....

Par ailleurs, dans ta connexion il te manque ";DriverLd=25" et le Recordset n'est pas présent. Pour avoir quelque chose de plus lisible utilise ceci cela fonctionne sûr :

Code asp :
1
2
3
4
5
6
7
8
	 DSN_BASE = "DBQ=" & Request.ServerVariables("APPL_PHYSICAL_PATH") & "db\******.mdb;Driver={Microsoft Access Driver (*.mdb)};Driverld=25"
 
		  Set Conn = Server.CreateObject("ADODB.Connection")
	      Conn.Open DSN_BASE
	      Set RS = Server.CreateObject("ADODB.Recordset")
 
	      Sql="Select Email From client where Email = '"& email &"'"
	      Rs.Open Sql, conn
__________________
Ne dites pas Java pour dire Javascript ! Ces deux codes n'ont rien à voir ! // Essayez d'expliquer, de la façon la plus claire possible votre problème. // Parfois une image vaut mieux qu'un long discours

FAQ ASP
kaiser59 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 25/05/2011, 15h32   #13
Invité de passage
 
Homme jean philipppe
Assistant aux utilisateurs
Inscription : mai 2011
Messages : 16
Détails du profil
Informations personnelles :
Nom : Homme jean philipppe
Localisation : France, Seine et Marne (Île de France)

Informations professionnelles :
Activité : Assistant aux utilisateurs
Secteur : Industrie

Informations forums :
Inscription : mai 2011
Messages : 16
Points : 2
Points : 2
re kaiser59
J'ai fais ce que tu m'as donne comme info mais rien n'y fait
Toujours aucun résultat

merci quand meme
jp77100 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 26/05/2011, 09h06   #14
Invité de passage
 
Homme jean philipppe
Assistant aux utilisateurs
Inscription : mai 2011
Messages : 16
Détails du profil
Informations personnelles :
Nom : Homme jean philipppe
Localisation : France, Seine et Marne (Île de France)

Informations professionnelles :
Activité : Assistant aux utilisateurs
Secteur : Industrie

Informations forums :
Inscription : mai 2011
Messages : 16
Points : 2
Points : 2
Bonjour kaiser,

J'ai réussi à avancer un peu mais en mettant vos codes rien a faire.
Par contre plus d'erreur Erreur: Object doesn't support this property or methodavec ce scipt en modifiant Mail.Send par Mail.SendMail
Par contre une erreur avec le debug de IE A cause de <form onSubmit="return ValidateForm()" method="post" action="oubli2.asp" onSubmit="return checkrequired(this)">
et toujours pas de reception de LOGIN par mail
1) Partie formaulaire de demande
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<title>Mot de Passe</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="conso.css" rel="stylesheet" type="text/css">
 
</head>
 
<body link="#000000" vlink="#000000" alink="#000000" leftmargin="1" topmargin="1" marginwidth="1" marginheight="1">
<table width="100%" border="0" cellspacing="1" cellpadding="0" height="100%">
  <tr> 
    <td width="25" rowspan="3" valign="top" background="images/fond.gif"><img src="images/etiquette.gif" width="25" height="300"></td>
    <td height="30" background="images/barreb.gif" > <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td class="T3">&nbsp;</td>
          <td class="T3b" align="right">Oubli de votre mot de passe&nbsp;&nbsp;</td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td height="338" valign="top"> 
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
        <tr> 
          <td align="center">&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td width="50" height="32" align="center"><img src="images/icone/mail.jpg" width="32" height="32"></td>
          <td><table width="250" border="0" cellspacing="0" cellpadding="0" height="32">
              <tr>
                <td height="12" background="images/barre.gif">Oubli de votre mot 
                  de Passe</td>
              </tr>
            </table></td>
          <td width="150">&nbsp;</td>
        </tr>
        <tr> 
          <td height="32">&nbsp;</td>
          <td colspan="2" valign="top"><strong>Indiquez l'
 
 
 Email
 
 de votre compte :</strong><br>
          <br>
          Nous vous enverrons automatiquement vos identifiants </td>
        </tr>
        <tr> 
          <td height="32" align="center">&nbsp;</td>
          <td>&nbsp;</td>
          <td align="center">&nbsp;</td>
        </tr>     <form onSubmit="return ValidateForm()" method="post" action="oubli2.asp" onSubmit="return checkrequired(this)">
 
        <tr> 
          <td height="32">&nbsp;</td>
          <td colspan="2" valign="center">
            <div align="center">
              <input type="text" name="email" value="votre Email" size="40">
            </div></td>
        </tr>
 
 
        <tr> 
          <td height="32">&nbsp;</td>
          <td colspan="2" ><div align="center">
            <input class="fancybut" type="submit" name="Submit" value="Envoyer">
          </div></td>
        </tr>
</form>
        <tr> 
          <td  align="center">&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td height="40">&nbsp;</td>
          <td valign="top">&nbsp;</td>
          <td valign="top">&nbsp;</td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td valign="top">&nbsp;</td>
          <td valign="top">&nbsp;</td>
        </tr>
      </table> 
    </td>
  </tr>
  <tr> 
    <td height="20" align="right">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="images/barreb2.gif">&nbsp;</td>
		  <td width="63" align="right"><a href="javascript:window.close()" onMouseOut="this.style.textDecoration='none'" onMouseOver="this.style.textDecoration='underline'" title="Fermer la fenêtre descriptive"><img src="images/icone/fermer.gif" border="0" width="16" height="16" hspace="3" align="absbottom">Fermer</a>&nbsp;</td>
        </tr>
      </table>
	</td>
  </tr>
</table>
</body>
</html>
L'autre fichier lui a été modifier pour permettre l'expeditionavec le nouvel hebergeur :
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
 
<% email=request.form("email") %>
 
<% if email="" then %>
<script language="javascript">
alert('E-mail Illegal');
history.back();
</script>
<%end if%>
 
<% 
Set Conn = Server.CreateObject("ADODB.Connection")
FilePath = Server.MapPath("/db/*****.mdb")
Conn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & FilePath & ";" 
%>
 
<% sql3 = "select * from client WHERE EMAIL='"&email&"' " %>
<% Set RSLOGIN2=Conn.execute(sql3) %>
 
 
<%if not RSLOGIN2.eof then%>
<%valemail= email & " : vos identifiants ont été envoyés par email." %>
<% 
Set Mail = Server.CreateObject("SMTPsvg.Mailer") 'create an Asp mail component.
Mail.RemoteHost = "mrelay.perfora.net" ' Serveur pour expédition avec Asp Mail
Mail.FromAddress = Request.Form("email") ' Adresse de l'expéditeur
Mail.FromName = "mon site" ' Nom de l'expéditeur
Mail.Subject = "IDENTIFIANTS : Oubli de votre mot de passe"
Mail.BodyText = "Vos identifiants mon site " & Chr(13) & Chr(10) & _
"Login : " & RSLOGIN2("LOGIN") & Chr(13) & Chr(10) & _
"Pass : " & RSLOGIN2("PASS") & Chr(13) & Chr(10) & _
"Bonne Visite."
 
On Error Resume Next
Mail.SendMail
If Err <> 0 Then
Response.Write "Erreur: " & Err.Description
End If
 %>
<%else%>
<%valemail= email & " : vos identifiants sont introuvables." %>
<%end if%>
 
 
<html>
<head>
<title>Mot de Passe</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="conso.css" rel="stylesheet" type="text/css">
 
</head>
 
<body link="#000000" vlink="#000000" alink="#000000" leftmargin="1" topmargin="1" marginwidth="1" marginheight="1">
<table width="100%" border="0" cellspacing="1" cellpadding="0" height="100%">
  <tr> 
    <td width="25" rowspan="3" valign="top" background="images/fond.gif"><img src="images/etiquette.gif" width="25" height="300"></td>
    <td height="30" background="images/barreb.gif" > <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td class="T3">&nbsp;</td>
          <td class="T3b" align="right">Oubli de votre mot de passe&nbsp;&nbsp;</td>
        </tr>
      </table></td>
  </tr>
  <tr> 
    <td height="338" valign="top"> 
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
        <tr> 
          <td align="center">&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td width="50" height="32" align="center"><img src="images/icone/mail.jpg" width="32" height="32"></td>
          <td><table width="250" border="0" cellspacing="0" cellpadding="0" height="32">
              <tr> 
                <td height="12" background="images/barre.gif">Oubli de votre mot 
                  de Passe</td>
              </tr>
            </table></td>
          <td width="150">&nbsp;</td>
        </tr>
        <tr> 
          <td height="32">&nbsp;</td>
          <td colspan="2" valign="top"><strong>Indiquez l'
 
 
 Email
 
 de votre compte :</strong><br>
          <br>
          Nous vous enverrons automatiquement vos identifiants </td>
        </tr>
        <tr> 
          <td height="32" align="center">&nbsp;</td>
          <td>&nbsp;</td>
          <td align="center">&nbsp;</td>
        </tr><form name="form1" method="post" action="oubli2.asp">
        <tr> 
          <td height="32">&nbsp;</td>
          <td colspan="2" valign="center">
            <div align="center"><%= valemail %></div></td>
        </tr>
 
 
        <tr> 
          <td height="32">&nbsp;</td>
          <td colspan="2" ><div align="center">
            <input type="button" name="Submit" value="Retour" onClick="history.back();">
          </div></td>
        </tr>
</form>
        <tr> 
          <td  align="center">&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr> 
          <td height="40">&nbsp;</td>
          <td valign="top">&nbsp;</td>
          <td valign="top">&nbsp;</td>
        </tr>
        <tr> 
          <td>&nbsp;</td>
          <td valign="top">&nbsp;</td>
          <td valign="top">&nbsp;</td>
        </tr>
      </table> 
    </td>
  </tr>
  <tr> 
    <td height="20" align="right">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="images/barreb2.gif">&nbsp;</td>
		  <td width="63" align="right"><a href="javascript:window.close()" onMouseOut="this.style.textDecoration='none'" onMouseOver="this.style.textDecoration='underline'" title="Fermer la fenêtre descriptive"><img src="images/icone/fermer.gif" border="0" width="16" height="16" hspace="3" align="absbottom">Fermer</a>&nbsp;</td>
        </tr>
      </table>
	</td>
  </tr>
</table>
</body>
</html>
Les identifiant ne sont pas expedier, par contre si je mets une adresse email qui n'est pas dans la base cela me repod identifiant incorect donc la connexion est bien réalisé.

Je pense que je ne suis pas loin de réussir, par contre je ne comprends d'où peut venir ce probleme.
Je pense a des lignes mal renseigné dans la partie envoie de l'email

A bientôt.
jp77100 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 27/05/2011, 10h42   #15
Invité de passage
 
Homme jean philipppe
Assistant aux utilisateurs
Inscription : mai 2011
Messages : 16
Détails du profil
Informations personnelles :
Nom : Homme jean philipppe
Localisation : France, Seine et Marne (Île de France)

Informations professionnelles :
Activité : Assistant aux utilisateurs
Secteur : Industrie

Informations forums :
Inscription : mai 2011
Messages : 16
Points : 2
Points : 2
bonjour a tous

Résolu il manquait juste :

Code :
Mail.AddRecipient "Mon site", Request.Form("email")
merci a tous de votre aide
jp77100 est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité Cette discussion est résolue.
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 15h01.


 
 
 
 
Partenaires

Hébergement Web