I have this code below for an online form on a website. The purpose of the form is to get details like, name, phone, message, etc from visitors.
However, when messages are posted and the email is sent to me the content of the messages do not appear.
Am I missing anything??
The code is:
<% @language=”javascript” %>
<%
var name = Request(“name”)+ ””;
var phone = Request(“phone”) + ””;
var email = Request (“email”) + ””;
var msg= Request (“message”) + ””;
var importance = “1”;
var from = “my email address”;
var to = “my email address”+ ””;
var subject = “Contact request”;
Var message = “Name: ” + name + ”\r\n” +
“Phone: ” + phone+ ”\r\n” +
“Email: ” + email+”\r\n” +
“Message: ” + msg + “\r\n”;
var email = Server.CreateObject(CDONTS.NewMail”);
email.Send(from, to, subject, message, importance);
Response.Redirect(“index.html”);
%>
However, when messages are posted and the email is sent to me the content of the messages do not appear.
Am I missing anything??
The code is:
<% @language=”javascript” %>
<%
var name = Request(“name”)+ ””;
var phone = Request(“phone”) + ””;
var email = Request (“email”) + ””;
var msg= Request (“message”) + ””;
var importance = “1”;
var from = “my email address”;
var to = “my email address”+ ””;
var subject = “Contact request”;
Var message = “Name: ” + name + ”\r\n” +
“Phone: ” + phone+ ”\r\n” +
“Email: ” + email+”\r\n” +
“Message: ” + msg + “\r\n”;
var email = Server.CreateObject(CDONTS.NewMail”);
email.Send(from, to, subject, message, importance);
Response.Redirect(“index.html”);
%>