IIS ASP - CDONTS.Newmail error

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > May 2007 > CDONTS.Newmail error





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author CDONTS.Newmail error
SSG

2007-05-25, 1:23 am

Dear All,

I am new to ASP , I am using Win XP pro ..

I am trying to send mail thru ASP pgm...

BW is the coding.......

<%
Sub send_email(email_from, email_to, email_subject, email_body)
Dim Newmail
Set Newmail = server.CreateObject ("cdonts.newmail") // (line
12)

Newmail.BodyFormat = 0
Newmail.MailFormat = 0
Newmail.From = email_from
Newmail.To = email_to
Newmail.Subject = email_subject
Newmail.Body = email_body
Newmail.Send

Set Newmail = Nothing
End Sub
Call send_email("from@domain.com","to@domain.com","Subject","Body")
%>


While running this pgm , its showing BW error

Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid class string
/pro/mail.asp, line 12


I am not able to find out the exact pblm...

Pls advise me hw to solve the PBLM..............

Thx & Rgds
SSG

Dave Anderson

2007-05-25, 1:23 am

"SSG" wrote:
> Set Newmail = server.CreateObject ("cdonts.newmail")


CDONTS is deprecated. Use CDO.Message instead.
http://classicasp.aspfaq.com/email/...l-from-asp.html



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com