Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: POSTing large mail messages with MAILTO using Internet Explorer and Outlook


Message #1 by "Ross Phillips" <Ross.H.Phillips@t...> on Thu, 28 Sep 2000 04:57:13 +0100
Hi,

  It is working

Enjoy

-----Original Message-----
From: Ross Phillips [mailto:Ross.H.Phillips@t...]
Sent: Thursday, September 28, 2000 9:27 AM
To: javascript
Subject: [javascript] POSTing large mail messages with MAILTO using
Internet Explorer and Outlook


BACKGROUND
I am looking for a specfic technical fix (if one exists) for this
problem,
rather than suggestions on other ways of doing the same thing, thanks

PROBLEM:
When submitting email with Internet Explorer using HTML or Javascript,
the
"subject" and "body" of mail message will only be completed if a
method="GET" is used, 
unfortunately using "GET" seems to limit the total size of the text in
the mail message to about ~580 chars!

Using a "POST" method with IE , which should allow a mail message of
unlimited length, produces a "mail compose note" with no subject or
body!

This limitation occurs under IE4,5\Outlook97\NT4 
and IE5\Outlook98\Win95,98.

Some MSDN documentation suggests that if you were using IE5\Outlook2000
the
body of the content submitted would appear as an attachment file in the
mail msg, "POSTDATA.ATT" (?)
(I haven't confirmed this)


The following HTML code works but gives an error dialog if total "to;
cc;
subject; body;" text > ~580 chars
<FORM	ACTION="mailto:mtscf@m...?cc=cat" 
		METHOD="POST" id=form1 name=form1
		ENCTYPE="multipart/form-data"
		>
<INPUT NAME=subject TYPE=hidden VALUE="this will be the mail msg
Subject">
<TEXTAREA NAME=body COLS=40>this will be the mail msg Body</TEXTAREA>
<INPUT TYPE=submit VALUE="Send Feedback" id=submit1 name=submit1>
</FORM>

JAVASCRIPT code - same limitation  e.g. :-
window.location="mailto:Ross@t...&subject=Pharmacy Order&body=" +
escape(mailBody$);
(OR FormName.action="...")


Any ideas on how to get Internet Explorer to use mail correctly with the
"POST" method, or anyone who can report what actually happens with
IE5\Outlook 2000 , would be appreciated

Email: Ross.H.Phillips@t...
regards 
Ross Phillips
Telstra Australia

$subst('Email.Unsub')

  Return to Index