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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Damn CDONTS problem --> server error 500

Status
Not open for further replies.

bastienk

Programmer
Joined
Mar 3, 2004
Messages
326
Location
CA
set myMail = Server.CreateObject("CDONTS.NewMail")
with myMail
.To = "me@hotmail.com" 'email 'other emails?
.CC = "you@domain.com"
.From = "DB Monitor"
.Subject = "Notification of Database problem"
strBody = myServer & " is having performance problems and/or appears to be down. Please investigate"
.Body = strBody
end with
response.write strBody
myMail.send
myMail.Close
set myMail = nothing
[/code]

And the line for the error is the line with strBody ="..."

Any ideas?
TIA


Bastien

Cat, the other other white meat
 
take strbody = blah blah out of the with statement and move it before with myMail. because strbody is not part of the myMail object methods/properties/etc.. just bad variable assignment location is all
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top