473,413 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

Formatting of text from a form when submitted via "mailto"

I have set up a form with some basic input data, e.g. Name, Address,
Telephone number and a few selections from drop-down menus; and a submit
button.
I am using "mailto" to send the contents of the form when completed to an
e-mail address; however I want the information from the form to be formatted
in a particular way in the e-mails that are submitted. Can someone point me
in the right direction here.
Thanks

Mike
Dec 16 '05 #1
2 2113
Thanks for the help. I am not really advanced enough to deal with
server-side scripts etc.... I was hoping that there would be a way through
JS. What I did manage to do is take the information from the form and when
the user presses the submit button, the information is extracted using a
function and "document.write" and formatted on the web page how I want it;
however, I now need to be able to e-mail that information as it apprears
back to me without having to delve into scripting. It there a way to do
this, i.e. e-mail the text result on a web page?

"Lee" <RE**************@cox.net> wrote in message
news:dn********@drn.newsguy.com...
Robin said:

I have set up a form with some basic input data, e.g. Name, Address,
Telephone number and a few selections from drop-down menus; and a submit
button.
I am using "mailto" to send the contents of the form when completed to an
e-mail address; however I want the information from the form to be
formatted
in a particular way in the e-mails that are submitted. Can someone point
me
in the right direction here.


The right direction is to not use mailto.
You have no control over it, and it might not work for many of your users.

Submit your form to a server-side script that formats the information and
mails it to you, *if* the form doesn't contain any information that your
users wouldn't want to send through email. Otherwise, submit it securely
to a server-side script that stores it on the server for you to retrieve
via a secure method.

Dec 16 '05 #2
Robin said the following on 12/16/2005 12:34 AM:
Thanks for the help. I am not really advanced enough to deal with
server-side scripts etc.... I was hoping that there would be a way through
JS.
There isn't.
What I did manage to do is take the information from the form and when
the user presses the submit button, the information is extracted using a
function and "document.write" and formatted on the web page how I want it;
however, I now need to be able to e-mail that information as it apprears
back to me without having to delve into scripting. It there a way to do
this, i.e. e-mail the text result on a web page?


No. Well, short of submitting a form and having the server send the
email. Other than that, anything you try will fail.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
Dec 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Bill Petrol | last post by:
I'm trying to send a link with a querystring as the body of an email message. My HTML syntax looks something like this: <a href="mailto:xxx@yyy.com?Subject=<? print $subject ?>&Body=<? print...
1
by: DrTebi | last post by:
Hello, I have the following problem: I used to "encode" my email address within links, in order to avoid (most) email spiders. So I had a link like this: <a...
4
by: Tero Partanen | last post by:
Hello! I'm writing about a rather peculiar problem I'm having with Access2000. I have a table in which I have created one hyperlink-type field. I have given the field a default value which is...
2
by: Jan Nielsen | last post by:
Hi I build a string of email receivers Then I send it using System.Diagnostics.Process.Start("mailto:" But when the string is longer than 2024 characters I receive an Access Denied exception....
1
by: Chad Dittmer | last post by:
I'd appreciate anyone's help with this. I'm trying to open an email window and have it auto fill from vb.net. It works, except I can't get line breaks in the body. I've tried: vbLf vbCrLf...
0
by: Pete | last post by:
Hi All, I'm new to this so please correct me if I'm wrong. I have written a small program which holds details for task information. the program holds an email address, i created a button which...
1
by: abilashnn | last post by:
'm attempting to send a mailto: and include a link in the body. Has anyone done this? I have one problem with this. One appln have a link to send an email using “mailto:”. Previosly this...
6
by: Otto Wyss | last post by:
I've tried to start the local mail program with window.open('mailto:email@address.com'); but that doesn't work. Is this somehow possible? O. Wyss
3
by: groupie | last post by:
Hi, I'd like to know how to implement the "Forgot Password" feature on many websites which require a login, exactly like this ebay example:...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.