ASP - ayuda con un form procesor( error)

 
Vista:

ayuda con un form procesor( error)

Publicado por Jose (1 intervención) el 05/05/2006 17:38:13
Hola amigos.
disculpen la molestia. No puedo encontrar el error en este codigo.
Podrian ayudarme? Muchas gracias y disculpen si mi pregunta es muy básica....

El error:
CDO.Message.1 error '8004020d'
At least one of the From or Sender fields is required, and neither was found.
/password_reminder.asp, line 63
--------------------------------------------------------------
ahora el codigo de password_reminder.asp:

username = request("cUsername")
if username<>"" then
temp_password = retrievePassword(username)
if temp_password(0,0) <> "null" then
password = temp_password(1,0)
Dim iMsg
Set iMsg = CreateObject("CDO.Message")

iMsg.To = temp_password(2,0)

if affiliateCode = "regus" then
iMsg.From = "[email protected]"
elseif affiliateCode = "group" then
iMsg.From = "[email protected]"
end if

iMsg.Subject = "Eprint - Password Remind"

iMsg.TextBody = "Your password is " & password

iMsg.Send

----------------------------
Nuevamente 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

RE:ayuda con un form procesor( error)

Publicado por javier (62 intervenciones) el 10/05/2006 14:29:55
Buenas,

pues tiene toda la pinta de que no esta entrando por ninguna de estas dos opciones:

if affiliateCode = "regus" then
iMsg.From = "[email protected]"
elseif affiliateCode = "group" then
iMsg.From = "[email protected]"
end if

para comprobar prueba esto:

if affiliateCode = "regus" then
iMsg.From = "[email protected]"
else
iMsg.From = "[email protected]"
end if

Seguramente sea que esas comparaciones estén mal hechas.

un saludo
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar