ShellExecute for email

Forums for specific tips, techniques and example code
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

ShellExecute for email

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:29 pm

by Axel Kiefer >> Tue, 17 Oct 2000 18:50:49 GMT

Hi,

I'm using the shellExecute for starting up the email client and I want
to pass in the body parameter a variable string called bodyText.
It seems so that the length of the body parameter is restricted.

call _shellExecute (hwnd, "open", "mailto:"&tbxEmail.text&"?subject="&"Your Order "&tbxOrderNumber.text.stripZeros(tbxOrderNumber.text.String)&"&body="&bodyText, null, null, 1);


Is there also a way to created automatically an attachment file?


regards

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: ShellExecute for email

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:29 pm

by Richard Mitchell >> Wed, 22 Nov 2000 0:47:31 GMT

Why not use Node::createExternalProcess ?

Richard
++++++++++++++++++

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: ShellExecute for email

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:29 pm

by Peter Gallagher >> Wed, 22 Nov 2000 3:00:33 GMT

Hi,

I have recently tried an ocx from www.flicks.com called OCXMail. Once I got this working, it hasn't missed a beat. The original problem I had was specifying an attachment to an email.

Regards

Peter

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: ShellExecute for email

Postby ConvertFromOldNGs » Fri Aug 07, 2009 2:29 pm

by Scott Whitfield >> Mon, 23 Jul 2001 2:50:34 GMT

I came across this restriction about a year ago and experienced a similar problem with the address field. It appeared to have a restriction of about 256 chars. This made is unusable for large email lists unless an alias was used.
I cant remember whether node.createExternalProcess worked or not, I suspect not as I ended up using a Dephi dll.


Return to “Tips and Techniques”

Who is online

Users browsing this forum: No registered users and 33 guests