PDA

Click to See Complete Forum and Search --> : "CDONTS.NewMail" Not Working.


Rob Brown
Feb 13th, 2001, 03:21 AM
Hi,

I'm building a fault reporting application with Visual Interdev and am having problems automating e-Mail from an .Asp page.

I'm using the following page to try and send my message:

<%
sub sendMail()

set myMail = server.CreateObject("CDONTS.NewMail")
myMail.From = WizDB
myMail.To = "rob.brown@waterni.gov.uk"
myMail.Subject = "Wizcon Fault"
myMail.Body = "A Wizcon fault has been edited. The ref no of the fault is: " & session("refno") & "."
myMail.Send
Set myMail = Nothing

end sub
%>

This returns the error:

"Invalid Class String"

My site runs on NT Workstation 4.0 SP6. Is this facility only available on NT Server or do I need to switch something on?

Any suggestions would be appreciated.

Best regards,

Rob Brown.

Jerry Grant
Feb 13th, 2001, 05:19 AM
As it's name implies 'Collaboration Data Objects for Windows NT Server', I assume you need to be running from an NT Server, and not a Workstation.

Look up help on the MSDN as there is loads of stuff there.

:cool: