If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Insert and send by email

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-06-03, 19:22
marglez77 marglez77 is offline
Registered User
 
Join Date: Oct 2003
Posts: 1
Question Insert and send by email

I am getting this error when trying to insert and send data from a form,
I want to be able to insert into de DB and the information in the form be sent by email, I am using recordsets.

Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid class string
/empleopr/empre/busqueda_cliente/cert/tbl_clientes_detail.asp, line 149

This is my code:


''Send Form by email script
%>
<% If Trim(Request.Form("MM_insert")) <> "" Then %>
<%
Set objCDO = Server.CreateObject("CDONTS.CertMail")

objCDO.From = rsEmpresa.Fields.Item("email").Value
objCDO.To = "correo@correo.net"

objCDO.Subject = rsEmpresa.Fields.Item("email").Value & " ha llenado una Certificación de Empleo"
objCDO.Body = Trim(Request.Form("mensaje")) & vbcrlf & vbcrlf & "La certificación fue llenada por " & rsEmpresa.Fields.Item("Nombre_Empresa").Value & " " & rsEmpresa.Fields.Item("Telefono").Value

objCDO.Send
Set objCDO = Nothing
%>
<% End If %>
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On