Hi guys,
Is there any limit on the number characters that a mailto body text will have? I tried this javascript snippet below and
...
var text= "blahblah";
window.location= "mailto:diko@mysite.com?body="+text
...
It seems when my text is a bit too long say 2k characters, my mail client(i.e. MS Outlook) won't pop-up anymore. But i tried shortening of my text to see if it works, it works fine. When I use IE no problem, but my firefox won't. Is there any way i could resolve this on firefox?
Thanks in advance for you help.
Regards,
mialto body text character limit
-
- Posts: 4
- Joined: August 7th, 2007, 3:01 pm
- jscher2000
- Posts: 11762
- Joined: December 19th, 2004, 12:26 am
- Location: Silicon Valley, CA USA
- Contact:
-
- Posts: 4
- Joined: August 7th, 2007, 3:01 pm
Hi guys,
Thanks for the replies ( i thought i couldn't get some clue here ), i was told to do it this way since theres a department here in my company that will use this feature in their application. The thing is only few people are going to use this feature. Thats why they decided to have the MS outlook to be the default email client to pop up everytime a particular button is pressed. Why I'm asking for the character limit is because there's a default "Text" that I need to put in the body everytime the email client(ms outlook) pops up so they they don't have to write this message over and over again and also the can add/edit on it when they want to.
btw, the default body "text" message is i guess its about almost 2k characters on it.
Hope you got my point. I'm still looking for alternatives if there are any ( im thinking using php but not using email client anymore ).
Thanks guys for you help.
regards,
also try the script below and you'll know what i mean.
[script]
var body="I was just visiting your website ..... // make these more than 1,600 characters
window.location = "mailto:yourmail@yoursite.com?body="+body;
[/script]
Thanks for the replies ( i thought i couldn't get some clue here ), i was told to do it this way since theres a department here in my company that will use this feature in their application. The thing is only few people are going to use this feature. Thats why they decided to have the MS outlook to be the default email client to pop up everytime a particular button is pressed. Why I'm asking for the character limit is because there's a default "Text" that I need to put in the body everytime the email client(ms outlook) pops up so they they don't have to write this message over and over again and also the can add/edit on it when they want to.
btw, the default body "text" message is i guess its about almost 2k characters on it.
Hope you got my point. I'm still looking for alternatives if there are any ( im thinking using php but not using email client anymore ).
Thanks guys for you help.
regards,
also try the script below and you'll know what i mean.
[script]
var body="I was just visiting your website ..... // make these more than 1,600 characters
window.location = "mailto:yourmail@yoursite.com?body="+body;
[/script]
-
- Posts: 422
- Joined: May 4th, 2005, 1:19 am
There have always been issues with mailto in a variety of browsers simply because it has no standardised behaviour. What you see today in any browser could change tomorrow. I would say use it maybe for the to and subject fields and only on a non public site. Anything more than that use a server side script. I can post my php mailer code if you like as an example. If you have an email addy on a public site it will get harvested for spam use so you might want to bear that in mind in future.
-
- Posts: 4
- Joined: August 7th, 2007, 3:01 pm
yep thanks man i agree. anyways thanks for the tip. and btw the feature is not applied to a public site.Jimbob0i0 wrote:There have always been issues with mailto in a variety of browsers simply because it has no standardised behaviour. What you see today in any browser could change tomorrow. I would say use it maybe for the to and subject fields and only on a non public site. Anything more than that use a server side script. I can post my php mailer code if you like as an example. If you have an email addy on a public site it will get harvested for spam use so you might want to bear that in mind in future.
And I appreciate much if i can see your php mailer code
thanks again
-
- Posts: 422
- Joined: May 4th, 2005, 1:19 am