using mailto with large body of text

I use the ShellExecute function with the 'mailto' tag to open the default mailer and stuff the address, subject and body of the message.

Now the body seems limited by the number of characters you can add. The message appears truncated if the body exceeds a certain limit in length.

Is there a way around this ?
fadygAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DrDelphiCommented:
What is more than likely happening is that since ShellExecute looks for a long pointer to string, and you are hard coding in a string, once you reach the upper limit of LongInt, it cuts off. What you could do is to have an AnsiString which you use to write out your message and then pass Pchar(Ansistring Variable) to shellExecute. That SHOULD work.


Good luck!!
0
intheCommented:
you could use temail2.zip from here instead:
http://www.torry.ru/vcl/internet/

then can send attachments as well and no string length errors...

also a demo project here showing how to send mail using mapi:
http://www.bhnet.com.br/~simonet/archive/mapimail.zip

Regards Barry
0
intheCommented:
hello any further comments ?
0
fadygAuthor Commented:
Hi There,

first sorry for the delay in answering. Was away for a while and could not check this out.

Thanks to you both (DrDelphi & Inthe) for your comments.

I took the easiest solution which was to download TEmail and use it as is in my application.

so the points go to inthe (although I didn't check DrDelphi's answer). Could you lock the question inthe ?

thanks again to both.
Fady
0
intheCommented:
cheers :-)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.