By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,376 Members | 1,716 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,376 IT Pros & Developers. It's quick & easy.

Custom mail formatting using form

P: n/a
I'm trying to mail form data by using the technique:

form.action="mailto:address?Subject=subject&body=b odyText"

(the placeholders above are obviously not real :)).

The thing is I want to customize the body text, but the submit action
of the form always overwrites any body text I set in the line above
with the default output of the form (a fieldname=value list).

How can I implement mailing from the form so that I can do more
flexible formatting of the body text?

Thanks.
Petre
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Have you tried changing the method to post ?
"Petre Huile" <ph****@yahoo.ca> wrote in message
news:5a*************************@posting.google.co m...
I'm trying to mail form data by using the technique:

form.action="mailto:address?Subject=subject&body=b odyText"

(the placeholders above are obviously not real :)).

The thing is I want to customize the body text, but the submit action
of the form always overwrites any body text I set in the line above
with the default output of the form (a fieldname=value list).

How can I implement mailing from the form so that I can do more
flexible formatting of the body text?

Thanks.
Petre

Jul 20 '05 #2

P: n/a
Petre Huile wrote:
I'm trying to mail form data by using the technique:

form.action="mailto:address?Subject=subject&body=b odyText"

(the placeholders above are obviously not real :)).

The thing is I want to customize the body text, but the submit action
of the form always overwrites any body text I set in the line above
with the default output of the form (a fieldname=value list).

How can I implement mailing from the form so that I can do more
flexible formatting of the body text?

Thanks.
Petre

Since there is no consistent browser response to mailto: actions, you
should generally avoid the construction.

Jul 20 '05 #3

P: n/a
In article <5a*************************@posting.google.com> ,
ph****@yahoo.ca says...
I'm trying to mail form data by using the technique:

form.action="mailto:address?Subject=subject&body=b odyText"

(the placeholders above are obviously not real :)).

The thing is I want to customize the body text, but the submit action
of the form always overwrites any body text I set in the line above
with the default output of the form (a fieldname=value list).

How can I implement mailing from the form so that I can do more
flexible formatting of the body text?


Use a server-side solution. What you're trying to do is unpredictable
at best.

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.