| 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: 15357
|
|
|
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
|
 |
 |
|
|
subject: mailto
|
|
|