File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes mailTo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "mailTo" Watch "mailTo" New topic


Ranch Hand

Joined: Jun 16, 2004
Posts: 31
How i use mailto command with large amount of body content more than 2020 character

mailto: ?subject=welcome&body=

please help me out
pascal betz
Ranch Hand

Joined: Jun 19, 2001
Posts: 547
thats a JavaScript question. You should post it in the "HTML / Javascript" forum.

Probably it just does not work or is browser dependant...

Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You can't, it is a limit of the browser with the size of the url. Use a serverside language to do the mailing with post.

Ranch Hand

Joined: Jun 16, 2004
Posts: 31
basically i want to fetch the data from the text field and then mail it
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63866

What are you using on the server side? This is easy to accomplish with the JavaMail API if using Java.
[ November 13, 2006: Message edited by: Bear Bibeault ]

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: mailTo
It's not a secret anymore!