Foros del Web » Programando para Internet » ASP Clásico »

error 8004020F

Estas en el tema de error 8004020F en el foro de ASP Clásico en Foros del Web. Hola, tengo la siguiente funcion para mandar mails en ASP y tengo el siguiente error: error 8004020F en la linea 85 que es msg = ...
  #1 (permalink)  
Antiguo 05/12/2007, 11:07
 
Fecha de Ingreso: agosto-2007
Mensajes: 63
Antigüedad: 16 años, 9 meses
Puntos: 0
error 8004020F

Hola, tengo la siguiente funcion para mandar mails en ASP y tengo el siguiente error:

error 8004020F en la linea 85 que es msg = ObjMail.Send

El codigo de la función es el siguiente:

function SendMail(sTo, sFrom, sPriority, sSubject, sBody, bHTML,adjuntos)


Set ObjMail = Server.CreateObject("CDO.Message")

Set objConfig = CreateObject("CDO.Configuration")

objConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = sistema_de_mail

objConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = sistema_de_mail_puerto

objConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = sistema_de_mail_user

objConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = sistema_de_mail_pass

objConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1

objConfig.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

objConfig.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60

objConfig.Fields.Update

Set objMail.Configuration = objConfig

ObjMail.From = mail_nombre_empresa & "<" & mail_empresa & ">"

ObjMail.Subject = sSubject

objMail.To = sTo

if adjuntos <> "" then

cadena = split(adjuntos,"=")

for z = lbound(cadena) to ubound(cadena)

if cadena(z) <> "" then

ObjMail.AddAttachment server.MapPath(trim(cadena(z)))

end if

next

end if

objMail.HTMLbody = sBody

msg = ObjMail.Send

set objMail = Nothing

set objConfig = Nothing

end function

Muchas gracias por la ayuda
  #2 (permalink)  
Antiguo 06/12/2007, 10:13
Avatar de pcarvajal  
Fecha de Ingreso: enero-2002
Mensajes: 701
Antigüedad: 22 años, 5 meses
Puntos: 8
Re: error 8004020F

Cita:
http://support.jjsolutions.ie/index....kbarticleid=18

You will receive the error '8004020f' when you are trying to send an email from an address that has not been set up on the server and your website has a dedicated IP address

e.g.

you are sending an email from from [email protected] however sales@ and John@ are the only two email addresses you have set up.

Resolution:

Change the from address to an account that exists or create the new account for the new address.
Saludos!
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 23:03.