File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

mailto

 
Satish Gopalakrishnan
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can count the number of words and not allow the form to be submitted.
 
sunitha reghu
Ranch Hand
Posts: 937
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 937
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Satish,
Are you using a format like this
FORM METHOD=POST ACTION="mailto:abc@abc.com" ENCTYPE="text/plain
 
Satish Gopalakrishnan
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic