473,830 Members | 2,035 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2163
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.co m...
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.javas cript 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
13307
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 urlencode($url) ?>">Send an Email</a> (I've had to URLENCODE the variables first, and it works. If I don't do so, then it doesn't work.) The problem occurs when it is time to display the encoded version. It
1
11446
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 href="mailto:DrTebi@yahoo.com">DrTebi</a> This would work like a regular mailto link in any browser, but wouldn't be visible to spiders if they don't have a function to decode it.
4
7470
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 an email-address. The default value is (for example): "mailto:mymail@here.com". Access2000 correctly inserts that information into the field everytime
2
9701
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. If I do the same thing in Access XP (DoCmd.SendEmail) , there is no problem.
1
2982
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 Environment.NewLine sendkeys <br> and multiple "&body=" Nothing happens with the above.
0
2170
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 use System.Diagnostics.Process class in vb.net to start a "Mailto:" + email address. This works fine, however I wanted to expand on this some more when the user had sent the email I wanted to do something afterwards. so looked around and found...
1
6476
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 funtionality was using with outlook as default email client, recently clients migrated to Lotus Notes and it is not working. Body part of mail message will get appended to the subject portion. The problem is with one link in the email body is having ?...
6
2695
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
2348
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: http://cgi4.ebay.com/ws/eBayISAPI.dll?UserIdRecognizerShow I've already retrieved the users password from the database - I just need to send it to the email address entered. From reading many posts, I need a server-side script and rather not use form mailto: nor use javascript on the users PC.
0
9641
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10769
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10476
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9310
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7739
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5615
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5775
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3956
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3070
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.