I am trying to send an email from the code when someone logs on to my site just welcoming them.
I use the following code which works from ny test server.
However the live site nothing happens.
What am I missing? I know it uses SMTP
set oMsg = server.createobject("CDONTS.Newmail"
oMsg.from = "team@education-quest.com"
oMsg.subject = "test"
oMsg.to = "xxx@xxx.co.uk"
oMsg.body = "body"
oMsg.send
set oMsg = nothing
What do I need to set on the server to get this to work?
Thanks
I use the following code which works from ny test server.
However the live site nothing happens.
What am I missing? I know it uses SMTP
set oMsg = server.createobject("CDONTS.Newmail"
oMsg.from = "team@education-quest.com"
oMsg.subject = "test"
oMsg.to = "xxx@xxx.co.uk"
oMsg.body = "body"
oMsg.send
set oMsg = nothing
What do I need to set on the server to get this to work?
Thanks