PC Review


Reply
Thread Tools Rate Thread

Character restrictions in IE while sending mail using Mailto

 
 
=?Utf-8?B?TWVlbmFrc2hp?=
Guest
Posts: n/a
 
      5th Dec 2005
I need to send a mail that requires more than 2000 character in the content
of the mail. we r getting the javascript error when the content exceeds more
than that.

Current code :

var doc = "mailto:......." - (the size of the conent is more than 2000 char)
window.location = doc;

Alternative code i tried:

<FORM Action="mailto:xyz" METHOD="get">
mailto: protocol test:
<Br>Subject:
<INPUT name="Subject" value="Test Subject">
<Br>Body:
<TEXTAREA name="Body">
kfdskfdksfkds
</TEXTAREA>
<BR>
<INPUT type="submit" value="Submit">
</FORM>
the above code did not populated the body content for the post method.Only
for the get method it is populating the content.
but the problem is for the get method, again it fails for the above 2083
characters.

in some systems (but in most of the machine it is failing) post method sends
the content as a attachement of the form

Subject=Test Subject
Body=kfdskfdksfkds

but i need the content to be populated in the body of the mail. instead of
attachment. I are facing this issue in IE and we need a solution for this in
IE 6.0.

http://support.microsoft.com/kb/208427/
http://support.microsoft.com/?kbid=279460
I refered the above sites for this issue. we could not find any solution

Please let me know if i can do this using IE 6 in any way using the same
mailto but without the 2083 character restriction.
 
Reply With Quote
 
 
 
 
Daniel Crichton
Guest
Posts: n/a
 
      5th Dec 2005
Meenakshi wrote on Mon, 5 Dec 2005 03:07:02 -0800:

> I need to send a mail that requires more than 2000 character in the
> content of the mail. we r getting the javascript error when the content
> exceeds more than that.
>
> Current code :
>
> var doc = "mailto:......." - (the size of the conent is more than 2000
> char) window.location = doc;
>
> Alternative code i tried:
>
> <FORM Action="mailto:xyz" METHOD="get">
> mailto: protocol test:
> <Br>Subject:
> <INPUT name="Subject" value="Test Subject">
> <Br>Body:
> <TEXTAREA name="Body">
> kfdskfdksfkds
> </TEXTAREA>
> <BR>
> <INPUT type="submit" value="Submit">
> </FORM>
> the above code did not populated the body content for the post method.Only
> for the get method it is populating the content.
> but the problem is for the get method, again it fails for the above 2083
> characters.
>
> in some systems (but in most of the machine it is failing) post method
> sends the content as a attachement of the form
>
> Subject=Test Subject
> Body=kfdskfdksfkds
>
> but i need the content to be populated in the body of the mail. instead of
> attachment. I are facing this issue in IE and we need a solution for this
> in IE 6.0.
>
> http://support.microsoft.com/kb/208427/
> http://support.microsoft.com/?kbid=279460
> I refered the above sites for this issue. we could not find any solution
>
> Please let me know if i can do this using IE 6 in any way using the same
> mailto but without the 2083 character restriction.



I would suggest that you look at a server-side solution. Use of mailto: is
handy for the odd link to open the persons mail client, but for sending form
data I'd recommend a server side component to deal with it. Using mailto: is
full of problems - limits on size in GET strings (which I think is the one
you've come across), mailto program not setup (so a mailto link results in
the user seeing a dialog saying they don't have anything to deal with that
type of link), and the message is sent from the customer's PC rather than
direct from your site (which has security implications, some personal
firewalls block the use of mailtos that attempt to create a message).

For any form submissions on any site I run I use components libraries - on
ASP servers I use ASPEmail from www.aspemail.com , and on PHP servers I tend
to use one of the method calls that comes with PGP for sending mail.

Dan


 
Reply With Quote
 
PA Bear
Guest
Posts: n/a
 
      5th Dec 2005
See http://snipurl.com/kil5 & check your href-value.
--
~Robear Dyer (PA Bear)
MS MVP-Windows (IE/OE, Shell/User, Security), Aumha.org VSOP, DTS-L.org

Meenakshi wrote:
> I need to send a mail that requires more than 2000 character in the
> content of the mail. we r getting the javascript error when the content
> exceeds more than that.
>
> Current code :
>
> var doc = "mailto:......." - (the size of the conent is more than 2000
> char) window.location = doc;
>
> Alternative code i tried:
>
> <FORM Action="mailto:xyz" METHOD="get">
> mailto: protocol test:
> <Br>Subject:
> <INPUT name="Subject" value="Test Subject">
> <Br>Body:
> <TEXTAREA name="Body">
> kfdskfdksfkds
> </TEXTAREA>
> <BR>
> <INPUT type="submit" value="Submit">
> </FORM>
> the above code did not populated the body content for the post method.Only
> for the get method it is populating the content.
> but the problem is for the get method, again it fails for the above 2083
> characters.
>
> in some systems (but in most of the machine it is failing) post method
> sends the content as a attachement of the form
>
> Subject=Test Subject
> Body=kfdskfdksfkds
>
> but i need the content to be populated in the body of the mail. instead of
> attachment. I are facing this issue in IE and we need a solution for this
> in IE 6.0.
>
> http://support.microsoft.com/kb/208427/
> http://support.microsoft.com/?kbid=279460
> I refered the above sites for this issue. we could not find any solution
>
> Please let me know if i can do this using IE 6 in any way using the same
> mailto but without the 2083 character restriction.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mailto links and sending immediately Fred K Microsoft Outlook Discussion 6 9th Nov 2008 01:14 AM
Enter character problem for sending mail? Adam Right Microsoft C# .NET 2 11th Apr 2006 09:02 AM
character restrictions when importing data from a text file =?Utf-8?B?cmljaHRlYQ==?= Microsoft Excel Misc 3 3rd Sep 2005 04:13 PM
mailto can't open outlook with chinese character in subject. =?Utf-8?B?UGV0ZXI=?= Windows XP Internet Explorer 5 29th Mar 2005 01:03 AM
mailto character limitation nikos stayropoulos Microsoft Windows 2000 2 18th Dec 2003 09:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:53 PM.