Sent Email Using VbScript

I had no idea what is going on with my  CDONTS

The code below is should be find, but somehow when ever user try to retrieve there password, the server won't sent out the email until I restart the computer.
My cdonts version 6.0.3939.0


<%
   'sets variables
email = request.form("email")
   'chooses username and password from database that correspond to submitted email address.
user = objrs.Fields("username")
pass = objrs.Fields("password")
Set sendmail = Server.CreateObject("CDONTS.NewMail")
   'put the webmaster address here
sendmail.From = "whateveraaa@whatever.com"
   'The mail is sent to the address entered in the previous page.
sendmail.To = email
   'Enter the subject of your mail here
sendmail.Subject = "The Login Information You Requested"
   'This is the content of thr message.
sendmail.Body = "The login Information you requested." & vbCrlf & vbCrlf _
& "Username=" & user & vbCrlf _
& "Password=" & pass & vbCrlf
   'this sets mail priority.... 0=low 1=normal 2=high
sendmail.Importance = 2
sendmail.Send
%>



QUANPROFILESAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mcdown75Commented:
Do you set your connection objects and rs back to nothing?  If not, those variables are hanging out there until you shut down and restart.

Try adding

sendmail.close
set sendmail = nothing
objrs.close
set objrs = nothing

etc....
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
QUANPROFILESAuthor Commented:
Yeah I did

I just figure out the problem, that is the hotmail email. They though that my email was using for spam that's why, but thanks anyway. I'm going to use a different method instead of CDONTS or CDO.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.