permaculture playing cards*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "mailto" Watch "mailto" New topic
Author

mailto

Satish Gopalakrishnan
Ranch Hand

Joined: Feb 13, 2001
Posts: 52
I want to use mailto: to format an email message. Is there a limit to the number of characters that can be present in the body of the mailto message..From what i observed , the body seems to get truncated for even 150 chars. Any ideas ??
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You can count the number of words and not allow the form to be submitted.
sunitha reghu
Ranch Hand

Joined: Dec 12, 2002
Posts: 937
I am just elaborating what Eric said. In your form
using JS limit the user to 150 chars or watever.
I m pasting a js fn for that. call this on key up or submit
function testscript(frm)
{
var tmplen;
var tmpvalue = new String(document.form.email.value);
tmplen=document.form.email.value.length;
tmpvalue=tmpvalue.substr(0,150);
if (tmplen >=150){
document.form.email.value = tmpvalue;
window.alert("Number of characters is limited to 150");
}

}
Satish Gopalakrishnan
Ranch Hand

Joined: Feb 13, 2001
Posts: 52
Eric & Sunita,
I think i did not phrase my question really well. I basically want to know if this is a known limitation and if so , is there any way around it because i need content in the body which will be more than 150 chars !!!
sunitha reghu
Ranch Hand

Joined: Dec 12, 2002
Posts: 937
Satish,
Are you using a format like this
FORM METHOD=POST ACTION="mailto:abc@abc.com" ENCTYPE="text/plain
Satish Gopalakrishnan
Ranch Hand

Joined: Feb 13, 2001
Posts: 52
Sunita,
I am not using the enctype ..I tried using the form post before( w/o the enctype) but i got an alert saying 'Are u sure u want to submit this form ' which is why i dumped the idea...let me try this and get back to you ..thanks for the help
Satish
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mailto
 
Similar Threads
Question on mailto tag
How to open default email client
Insert HyperLinks at Email Body
HTML in Desktop.mail(URI)?
mailTo