Bonjour,

J'ai un petit prob avec mon formulaire d'envoi de mail
Je precise que je le test en local

voici mon code:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
<%
dim JMail
Set JMail = Server.CreateObject("JMail.SMTPMail") 
JMail.ServerAddress = "mail.localhost"
 
JMail.Sender  = Request.Form("form1")
JMail.Subject = "Demande d'informations"
 
JMail.AddRecipient "admin@wanadoo.fr"
 
JMail.Body = "Motif :" & request.form("motif") 	
 
JMail.Priority = 3
 
JMail.execute
	If NOT JMail.execute THEN
	    str = "ERROR MESSAGE: " & JMail.ErrorMessage & "<br>" & vbcrlf & _
	          "ERROR SOURCE: " & JMail.ErrorSource & "<br>" & vbcrlf & _
	          "LOG: " & JMail.Log & "<br>"
	Else
	   	str = "Mail Ok..."
	End If
 
	set JMail = nothing
 
%>
mais voici le msg d'erreur que j'ai:
Erreur de compilation Microsoft VBScript error '800a0401'

Fin d'instruction attendue

/iisHelp/common/500-100.asp, line 11

Dim objASPError, blnErrorWritten, strServername, strServerIP, strRemoteIP Dim strMethod, lngPos, datNow, strQueryString, strURL
--------------------------------------------------------------------------^
Objet Server error 'ASP 0177 : 800401f3'

Échec de Server.CreateObject

/aidami/contact.asp, line 170

Chaîne de classe incorrecte
pourtant sur mon autre site (mais en ligne celui la) ca marche
Quelqu'un voit mon erreur?
merci