Sample code to start default e-mail client on host machine:
This works. %0D%0A for line feed.
ShellExecute(handle,'open','Mailto:simon@simonhooper.co.uk?subject=Task list&Body='+'This is the body%0D%0AAnd another line',nil,nil,SW_SHOWNORMAL);
Can also use HTML formatting:
ShellExecute(handle,'open','Mailto:simon@simonhooper.co.uk?subject=Task list&Body='+'<HTML>This is the body<BR/>And another line</HTML>',nil,nil,SW_SHOWNORMAL);
Apparently can specify attachments also, but this doen't seem to work with Outlook Express (v5)
&Attach="c:.txt"
this has been suggested, but doesn't seem to work
WinExec('start "mailto:shmia@bizerba.de?subject=Barcode component"',SW_HIDE);
As you said I used shellexecute Api function.
It works fine if my default mail is MicrosoftOutlook , it just open
e-mail composer only.
If my default mail is netscape(version 4.79) the Netscape browser and
two e-mail composer also open, if it is netscape(version 7.0) the
Netscape browser and one e-mail composer also open. If the netscape
browser is already opened in my desktop before I run my application the
application open only one e-mail composer, in this case it work fine.
I want to open only one e-mail composer with any circumstance.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.