Quantcast
Channel: Adobe Community : All Content - ASP VBScript Development (read only)
Viewing all articles
Browse latest Browse all 106

send.Asp File error does not send html form

$
0
0

Hi,

 

on my site I have a "contact us" page that contains an html form which I would like to be sent to a specific email once the user clicks on "send".

I'm trying to do so with POST action connected to send.ASP file. but I keep getting this erro:

CDO.Message.1error '800401e4'

Invalid syntax

/send.asp, line 15

 

Here is the Send.ASP code:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Message from site"
myMail.From="info@rakku.co.il"
myMail.To="info@rakku.co.il"
myMail.CreateMHTMLBody "Name: " + Request.Form("Name") + "<br/>tel no: " + Request.Form("Tel_code") + Request.Form("Tel") + "<br/>Cell no: " + Request.Form("Cell_code") + Request.Form("Cell") + "<br/>Email: " + Request.Form("Email") + "<br/>Subject: " + Request.Form("Subject") + "<br/>message: " + Request.Form("Substence")
myMail.Send
set myMail=nothing
%>
</body>
</html>

here is my html form code:

                                                                                                                                                                                                                                                                                                                                         
שם פרטי ומשפחה
דואר אלקטרוני
טלפון 
נייד 
נושא
תוכן ההודעה
   
  

 


Viewing all articles
Browse latest Browse all 106

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>