Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create.object("CDONTS.Newmail") not sending email

Status
Not open for further replies.

Claypole

Programmer
Aug 22, 2002
12
0
0
GB
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
 
Why are you sending email when your users log in? You mean if I log in 10 times per day I'm going to receive 10 emails? That would bother me (but that's just me)

I would display a personalized welcome message on the screen...
[sup]
<%=Tony%>
 
what I meant although not clearly indicated was that when they created a user then they get an email not when they login.
Now can you point me in the right direction?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top