Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

playing with CDO / CDONTS

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
please help, I cant get a simple email to send server side from a asp page.

this is my error;
Server object error 'ASP 0177 : 800401f3'
Server.CreateObject Failed
/contact.asp, line 10
Invalid class string

This is the code:
<%@ Language=VBScript %>
<%
Response.Buffer=True
Set smtp = Server.CreateObject(&quot;CDO.Message&quot;)
smtp.From = &quot;test@emailaddress.com&quot;
smtp.To = &quot;me@emailaddress.com&quot;
smtp.Subject = &quot;email Contact&quot;
smtp.TextBody = &quot;Testing to send Email automatic&quot;
smtp.Send()
'
Set smtp = nothing
%>
The server is NT 4.0 and IIS4 i think. I tried also

set cdosmtp = Server.CreateObject(&quot;CDONTS.NewMail&quot;)
cdosmtp.Send (&quot;email@address.com&quot;, &quot;testing&quot;, &quot;Testing this stuff&quot;)
Set objMail = Nothing


This also failed. MY book is real vague,and I am not sure if i need to load something on management console?

thanks in advance

-Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top