• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

mailto

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ??
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can count the number of words and not allow the form to be submitted.
 
Ranch Hand
Posts: 937
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
We don't have time for this. We've gotta save the moon! Or check this out:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic