ERROR http 503

Hi ,

I've the following error:

Error Type:

CDONTS.NewMail.1 (0x80020009)

503 Application Restarting

/asp/notas/curso/mmail2.asp, line 14

when I try to execute the following code:

<%

Set MyEmail = Server.CreateObject("CDONTS.NewMail")

'Define your variables

strEmailMsg = "*** ESTE MENSAJE SE GENERA AUTOMATICAMENTE ***"

'Use the mail object methods and your ASP variables to generate and send e-mail.

MyEmail.Subject = "PRUEBA"

MyEmail.Host = "smtp.digitus.cl"

MyEmail.Body = strEmailMsg

MyEmail.From = "lgalaz@digitus.cl"

MyEmail.To = "happylucho@yahoo.com"

MyEmail.Send

'It is always a good idea to destroy your server objects once you are done with them, to preserve resources.

Set MyEmail = Nothing

response.redirect "OK, mail enviado"

%>

Any ideas? What happenning?

Best,

Luis

[944 byte] By [LuisGalaza] at [2007-11-26 23:38:50]
# 1
Yes - you have a response.redirect instead of a response.write at the end.Duncan
Duncan_Berrimana at 2007-7-11 15:03:34 > top of Java-index,Web & Directory Servers,Web Servers...