Email without extentions

H

Hazel

Hi All
Many moons ago I found the code below on this forum and have used it
successfully ever since with no problems - is it possible to add to the code
a line that will automatically send the received message back to the sender
in other words an exact copy of what they have sent.


<html>
<head>
<title>Weekly Club Charges</title>
<script type="text/javascript">
function sendform()
{
with (document.form1)
{
var body = ''
var i = elements.length , j = 0
while (i-- > 3) // 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:" + "??????" +"@"+ "??????????" + ".??.??"
+ "?subject=Weekly Club Race Details"
+ "&body=" + body
}
</script>
 

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