Forum Moderators: mack
Dim MyBody
Dim MyCDONTSMail
Set MyCDONTSMail = Server.CreateObject("CDONTS.NewMail")
MyCDONTSMail.From= "admin@company.com"
MyCDONTSMail.To= "testperson@company.com"
MyCDONTSMail.Subject="Password Confirmation"
MyBody = "You have successfully changed your password." & vbCrLf
MyBody = MyBody & "Your new password is "
' & Password & "'"& vbCrLf
MyCDONTSMail.Body= MyBody
MyCDONTSMail.Send
set MyCDONTSMail = nothing
What am I doing wrong? This code is still in development hence it's still in my c drive in IIS. Can it stil work or do I have to put it on a server?