ASP - Envio formulario en ASP

 
Vista:

Envio formulario en ASP

Publicado por Joan Carles (1 intervención) el 21/06/2013 15:33:33
Buenas tardes,
Estoy modificando un script, para enviar la información de un formulario por correo y me da el siguiente error:

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'MailServerUsername'

EL codigo que utilizo es el siguiente:

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
<%
 
	Dim mail
 
	SenderEmail = "Info@oaaaa.es"
	Subject = "aaaaas"
	Bodytext = "<html><body>sssss</body></html>"
	MailServer = "192.0.0.1:2525"
 
	Set mail = CreateObject ("JMail.SMTPMail")
 
	mail.MailServerUsername = "hola"
	mail.MailServerPassword = "lola"
	mail.MailDomainn = "lala"
 
	mail.ServerAddress = mailserver
	mail.Sender = SenderEmail
 
	mail.Subject = Subject
	mail.AddRecipient "j@hotmail.com"
 
	mail.ContentType = "text/html" 'text/html o text/plain
	mail.ISOEncodeHeaders = false
	mail.ContentTransferEncoding = "8bit"
	mail.Body = bodytext
	
	mail.Priority = 3
	mail.AddHeader "Originating-IP", Request.ServerVariables ("REMOTE_ADDR")
	mail.Execute
	set mail = nothing
	'msg.Execute
%>
<script> window.close(); </script>


Alguien se le ocurre porque esta fallando lo autentificacion.
Gracias.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder