Click to See Complete Forum and Search --> : Cdonts
gubendran
01-07-2003, 07:13 AM
Hi,
I have used CDONTS.newmail to create object for sending mails, but i am getting error invalid class and server create object failed. but i checked out that component using regedit command , it is there at server. can u help?
vishu_gupt
01-07-2003, 07:21 AM
Hi Use the following code to send the mail. Make sure that SMTP services are running on IIS, where you are running the ASP pages.
Set objMail = CreateObject("CDONTS.Newmail")
objMail.From = "rob@here.com"
objMail.To = "jdr@there.com"
objMail.Subject = "Bad News"
objMail.Body = "I owe you £50"
objMail.Send
Set objMail = Nothing
gubendran
01-07-2003, 07:40 AM
Hi friend,
In IIS SMTP is not running but exchange server and every thing is being installed. but still SMTP service is not started. how to solve this
Dr.5150
01-07-2003, 04:24 PM
IIS's SMTP & Exchange's SMTP are different beasts I do not know if a cdonts call will correctly address the Exchange smpt service.
vishu_gupt
01-07-2003, 10:45 PM
Originally posted by gubendran
Hi friend,
In IIS SMTP is not running but exchange server and every thing is being installed. but still SMTP service is not started. how to solve this
HI..
Try to start the SMTP services of IIS as CDONTS will give call to IIS SMTP services. If it still not working then I will suggest you to reinstall the IIS with all its component. You may get all components in Advance option during installation.