472,127 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,127 software developers and data experts.

CDONTS.Newmail error

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

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

Set Newmail = Nothing
End Sub
Call send_email("fr**@domain.com","to@domain.com","Subj ect","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

May 25 '07 #1
1 3674
"SSG" wrote:
Set Newmail = server.CreateObject ("cdonts.newmail")
CDONTS is deprecated. Use CDO.Message instead.

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.

May 25 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Guillaume Hanique | last post: by
5 posts views Thread by Krishnan | last post: by
6 posts views Thread by vasanth kumar | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.