Hello all,
I want to launch windows default e-mail client with preset to-field,
subject and body.
I tried to solve that via ShellExecute and a mailto-url, like that
url = "mailto:"+email+"?.Subject="+subject+"&.body="+body) (forget about the . without . the article is not accepted)
ShellExecute( 0, body, "", "", 1)
If url is shorter than 255 chars everything works fine on 95/98/nt/w2k.
IE oder Netscape is launched an contains the body.
But on NT (unfortunatly I need it mostly on NT) every url tha is
longer than 255 chars (most of my urls are about 1000 chars, dur to a
long body) is cut off.
This resuls in truncated e-mail bodies displaed in the e-mail
client :-(((
On 98/w2k all works fine up to 2020 chars (Netscape) oder 2030 chars
(IE).
Article
http://support.microsoft.com/support/kb/articles/Q263/9/09.ASPsays, that you can work around this by creating an internet shortcut
containing that long (greater 255 chars) url, and then call
ShellExecute( 0, internet_shortcut, "", "", 1)
I tried this, but it results in the same truncated e-mail bodies :-/
1. Is the anonther way to bring a 1000 chars e-mail body into
the e-mail client?
2. Why does that workaround not work?
Does it reach the same ShellExecute internal 255 chars buffer
limit?
3. Is ther no way to pass the url direktly or as a file to the e-mail
client?
Thanks for any hint,
Andreas