andrew1234
04-01-2005, 12:47 PM
Hi Below is the form and the asp email script
it will send the asp email but it wont
display the info that is filled into the form on the e-mail sent.
can you please tell me what i have left out
thanks for the help
Andrew
html form>>>>>
<font size="2" face="Arial, Helvetica, sans-serif">
<FORM action="123.asp" method=POST enctype="text/plain" name="Form" id="Form">
name
<input name="na" type="text" >
<br />
sname
<input name="sname" type="text" >
<br />
tel
<input name="tel" type="text" >
<br />
phone
<input name="phone" type="text" >
<br />
cell
<input name="cell" type="text" >
<br />
email
<input name="email" type="text" >
<br />
<input name="submit" type="submit" value="do it" >
</FORM>
</font>
asp>>>>>>>>>>>>>>>
<%
Set mybody = nothing
'-------------------------------------------------------------------------------------
Dim na, sname, phone, cell ,email
na = Request.Form("na")
sname = Request.Form("sname")
phone = Request.form("phone")
cell = Request.Form("cell")
email = Request.Form("email")
'______________________________________________________________________________
mybody = "" & chr(13) 'chr(13) makes new line
mybody = mybody & "Name : " & na & chr(13) & chr(13)
mybody = mybody & "sname : " & sname & chr(13) & chr(13)
mybody = mybody & "phone : " & phone & chr(13) & chr(13)
mybody = mybody & "cell : " & cell & chr(13) & chr(13)
mybody = mybody & "email : " & email & chr(13) & chr(13)
mybody=mybody & "Test message"
'_______________________________________________________________________________________________
'_______________________________________________________________________________________________
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.Body=mybody
objMail.From= "1@test.com"
objMail.To="1@test.com"
objMail.Subject="ASP Test message"
objMail.Send
set objMail = nothing
%>
<html>
<head>
<title>Test</title>
</head>
<body>
<b>sent</b>
</body>
</html>
it will send the asp email but it wont
display the info that is filled into the form on the e-mail sent.
can you please tell me what i have left out
thanks for the help
Andrew
html form>>>>>
<font size="2" face="Arial, Helvetica, sans-serif">
<FORM action="123.asp" method=POST enctype="text/plain" name="Form" id="Form">
name
<input name="na" type="text" >
<br />
sname
<input name="sname" type="text" >
<br />
tel
<input name="tel" type="text" >
<br />
phone
<input name="phone" type="text" >
<br />
cell
<input name="cell" type="text" >
<br />
<input name="email" type="text" >
<br />
<input name="submit" type="submit" value="do it" >
</FORM>
</font>
asp>>>>>>>>>>>>>>>
<%
Set mybody = nothing
'-------------------------------------------------------------------------------------
Dim na, sname, phone, cell ,email
na = Request.Form("na")
sname = Request.Form("sname")
phone = Request.form("phone")
cell = Request.Form("cell")
email = Request.Form("email")
'______________________________________________________________________________
mybody = "" & chr(13) 'chr(13) makes new line
mybody = mybody & "Name : " & na & chr(13) & chr(13)
mybody = mybody & "sname : " & sname & chr(13) & chr(13)
mybody = mybody & "phone : " & phone & chr(13) & chr(13)
mybody = mybody & "cell : " & cell & chr(13) & chr(13)
mybody = mybody & "email : " & email & chr(13) & chr(13)
mybody=mybody & "Test message"
'_______________________________________________________________________________________________
'_______________________________________________________________________________________________
Set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.Body=mybody
objMail.From= "1@test.com"
objMail.To="1@test.com"
objMail.Subject="ASP Test message"
objMail.Send
set objMail = nothing
%>
<html>
<head>
<title>Test</title>
</head>
<body>
<b>sent</b>
</body>
</html>