E-Mail Forms

P

Phil Brighton

Can I use a return form to e-mail without using FP Extensions, and if so can
someone be so kind to direct me to the relative script I will need.
Many Thanks
 
T

Thomas A. Rowe

You have to find out what script language is supported by your host.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================
 
T

Trevor L.

Phil said:
Can I use a return form to e-mail without using FP Extensions, and if
so can someone be so kind to direct me to the relative script I will
need.
Many Thanks

Here is a simple page which takes the contents of a form and writes it to an email to
(e-mail address removed)

Add extra <input>'s or <textarea>'s as required. Just leave the last two

<html>
<head>
<title>Form Test</title>
<script type="text/javascript">
function sendform()
{
with (document.form1)
{
var body = ''
var i = elements.length , j = 0
while (i-- > 2) // drop last two elements
{
var tname = elements[j].id
body += tname + ": "
if (tname == "Comment")
body += '%0d%0a' // line break before comment text
body += elements[j].value + '%0d%0a' // line break after each line
j += 1
} // end while
}
window.location = "mailto:" + "me" + "@" + "mydomain" + ".com"
+ "?subject=Response"
+ "&body=" + body
}
</script>
</head>
<body>
<div style="border:1px solid #999999; width:60%; background-color:#F2F4FA;">
<form name="form1" action="">
<div style="padding:10px; font:75% Arial; text-align:left;">
<p>
Name:<br/>
<input type="text" id="Name" value="Insert name" size="40" /><br/>
Email:<br/>
<input type="text" id="Email" value="Insert e-mail address" size="40" /><br/>
Enter Comment:<br/>
<textarea id="Comment" rows="10" cols="100" style="font:100% Arial;">Enter your comment in here</textarea><br />
</div>
<div align="center" style="background-color:#DBE0F5; padding:3px; font:12px arial;">
<input type="button" id="submit" value=" Send " onclick="sendform()" />
<input type="reset" id="reset" value=" Clear "/>
</div>
</form>
</div>
</body>
</html>
 
H

Hazel

Hi

I have used the code below on my website and it works brilliantly - however
I enjoy using Outlook Express and is it possible to add any code that would
automatically respond to the Email Address entered in the text box on the
form with a simple message such as ' Thank you for your enquiry we will reply
ASAP '
--
Many thanks

hazel


Trevor L. said:
Phil said:
Can I use a return form to e-mail without using FP Extensions, and if
so can someone be so kind to direct me to the relative script I will
need.
Many Thanks

Here is a simple page which takes the contents of a form and writes it to an email to
(e-mail address removed)

Add extra <input>'s or <textarea>'s as required. Just leave the last two

<html>
<head>
<title>Form Test</title>
<script type="text/javascript">
function sendform()
{
with (document.form1)
{
var body = ''
var i = elements.length , j = 0
while (i-- > 2) // drop last two elements
{
var tname = elements[j].id
body += tname + ": "
if (tname == "Comment")
body += '%0d%0a' // line break before comment text
body += elements[j].value + '%0d%0a' // line break after each line
j += 1
} // end while
}
window.location = "mailto:" + "me" + "@" + "mydomain" + ".com"
+ "?subject=Response"
+ "&body=" + body
}
</script>
</head>
<body>
<div style="border:1px solid #999999; width:60%; background-color:#F2F4FA;">
<form name="form1" action="">
<div style="padding:10px; font:75% Arial; text-align:left;">
<p>
Name:<br/>
<input type="text" id="Name" value="Insert name" size="40" /><br/>
Email:<br/>
<input type="text" id="Email" value="Insert e-mail address" size="40" /><br/>
Enter Comment:<br/>
<textarea id="Comment" rows="10" cols="100" style="font:100% Arial;">Enter your comment in here</textarea><br />
</div>
<div align="center" style="background-color:#DBE0F5; padding:3px; font:12px arial;">
<input type="button" id="submit" value=" Send " onclick="sendform()" />
<input type="reset" id="reset" value=" Clear "/>
</div>
</form>
</div>
</body>
</html>
 
D

David Berry

What you would need to do is see if your web host offers autoresponders.
Then you would set up the receiving email address to send out an auto reply.


Hazel said:
Hi

I have used the code below on my website and it works brilliantly -
however
I enjoy using Outlook Express and is it possible to add any code that
would
automatically respond to the Email Address entered in the text box on the
form with a simple message such as ' Thank you for your enquiry we will
reply
ASAP '
--
Many thanks

hazel


Trevor L. said:
Phil said:
Can I use a return form to e-mail without using FP Extensions, and if
so can someone be so kind to direct me to the relative script I will
need.
Many Thanks

Here is a simple page which takes the contents of a form and writes it to
an email to
(e-mail address removed)

Add extra <input>'s or <textarea>'s as required. Just leave the last two

<html>
<head>
<title>Form Test</title>
<script type="text/javascript">
function sendform()
{
with (document.form1)
{
var body = ''
var i = elements.length , j = 0
while (i-- > 2) // drop last two elements
{
var tname = elements[j].id
body += tname + ": "
if (tname == "Comment")
body += '%0d%0a' // line break before comment text
body += elements[j].value + '%0d%0a' // line break after
each line
j += 1
} // end while
}
window.location = "mailto:" + "me" + "@" + "mydomain" + ".com"
+ "?subject=Response"
+ "&body=" + body
}
</script>
</head>
<body>
<div style="border:1px solid #999999; width:60%;
background-color:#F2F4FA;">
<form name="form1" action="">
<div style="padding:10px; font:75% Arial; text-align:left;">
<p>
Name:<br/>
<input type="text" id="Name" value="Insert name" size="40" /><br/>
Email:<br/>
<input type="text" id="Email" value="Insert e-mail address"
size="40" /><br/>
Enter Comment:<br/>
<textarea id="Comment" rows="10" cols="100" style="font:100%
Arial;">Enter your comment in here</textarea><br />
</div>
<div align="center" style="background-color:#DBE0F5; padding:3px;
font:12px arial;">
<input type="button" id="submit" value=" Send "
onclick="sendform()" />
<input type="reset" id="reset" value=" Clear "/>
</div>
</form>
</div>
</body>
</html>
 
A

Andrew Murray

Your host might have a solution to auto-reply straight on the server. Check
your hosting control panel (if this is provided with your hosting a/c).

Hazel said:
Hi

I have used the code below on my website and it works brilliantly -
however
I enjoy using Outlook Express and is it possible to add any code that
would
automatically respond to the Email Address entered in the text box on the
form with a simple message such as ' Thank you for your enquiry we will
reply
ASAP '
--
Many thanks

hazel


Trevor L. said:
Phil said:
Can I use a return form to e-mail without using FP Extensions, and if
so can someone be so kind to direct me to the relative script I will
need.
Many Thanks

Here is a simple page which takes the contents of a form and writes it to
an email to
(e-mail address removed)

Add extra <input>'s or <textarea>'s as required. Just leave the last two

<html>
<head>
<title>Form Test</title>
<script type="text/javascript">
function sendform()
{
with (document.form1)
{
var body = ''
var i = elements.length , j = 0
while (i-- > 2) // drop last two elements
{
var tname = elements[j].id
body += tname + ": "
if (tname == "Comment")
body += '%0d%0a' // line break before comment text
body += elements[j].value + '%0d%0a' // line break after
each line
j += 1
} // end while
}
window.location = "mailto:" + "me" + "@" + "mydomain" + ".com"
+ "?subject=Response"
+ "&body=" + body
}
</script>
</head>
<body>
<div style="border:1px solid #999999; width:60%;
background-color:#F2F4FA;">
<form name="form1" action="">
<div style="padding:10px; font:75% Arial; text-align:left;">
<p>
Name:<br/>
<input type="text" id="Name" value="Insert name" size="40" /><br/>
Email:<br/>
<input type="text" id="Email" value="Insert e-mail address"
size="40" /><br/>
Enter Comment:<br/>
<textarea id="Comment" rows="10" cols="100" style="font:100%
Arial;">Enter your comment in here</textarea><br />
</div>
<div align="center" style="background-color:#DBE0F5; padding:3px;
font:12px arial;">
<input type="button" id="submit" value=" Send "
onclick="sendform()" />
<input type="reset" id="reset" value=" Clear "/>
</div>
</form>
</div>
</body>
</html>
 
H

Hazel

Hi

And thank you all -- my host has auto respond on the server -- all I have to
do now is work out how to do it. By coming to this community -- I learn
something everytime - we are not all FP savvy you know - there are many
questions I would love to ask -- however I sometimes see answers to questions
that are quiet pretentious and treat the questioner as an idiot -- so I
don't ask -- once again
--
Many thanks

hazel


Andrew Murray said:
Your host might have a solution to auto-reply straight on the server. Check
your hosting control panel (if this is provided with your hosting a/c).

Hazel said:
Hi

I have used the code below on my website and it works brilliantly -
however
I enjoy using Outlook Express and is it possible to add any code that
would
automatically respond to the Email Address entered in the text box on the
form with a simple message such as ' Thank you for your enquiry we will
reply
ASAP '
--
Many thanks

hazel


Trevor L. said:
Phil Brighton wrote:
Can I use a return form to e-mail without using FP Extensions, and if
so can someone be so kind to direct me to the relative script I will
need.
Many Thanks

Here is a simple page which takes the contents of a form and writes it to
an email to
(e-mail address removed)

Add extra <input>'s or <textarea>'s as required. Just leave the last two

<html>
<head>
<title>Form Test</title>
<script type="text/javascript">
function sendform()
{
with (document.form1)
{
var body = ''
var i = elements.length , j = 0
while (i-- > 2) // drop last two elements
{
var tname = elements[j].id
body += tname + ": "
if (tname == "Comment")
body += '%0d%0a' // line break before comment text
body += elements[j].value + '%0d%0a' // line break after
each line
j += 1
} // end while
}
window.location = "mailto:" + "me" + "@" + "mydomain" + ".com"
+ "?subject=Response"
+ "&body=" + body
}
</script>
</head>
<body>
<div style="border:1px solid #999999; width:60%;
background-color:#F2F4FA;">
<form name="form1" action="">
<div style="padding:10px; font:75% Arial; text-align:left;">
<p>
Name:<br/>
<input type="text" id="Name" value="Insert name" size="40" /><br/>
Email:<br/>
<input type="text" id="Email" value="Insert e-mail address"
size="40" /><br/>
Enter Comment:<br/>
<textarea id="Comment" rows="10" cols="100" style="font:100%
Arial;">Enter your comment in here</textarea><br />
</div>
<div align="center" style="background-color:#DBE0F5; padding:3px;
font:12px arial;">
<input type="button" id="submit" value=" Send "
onclick="sendform()" />
<input type="reset" id="reset" value=" Clear "/>
</div>
</form>
</div>
</body>
</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top