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: