 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Peter Guest
|
Posted: Mon Dec 25, 2006 2:54 am Post subject: invoke email app |
|
|
How can I easily get the default email program to start up with some
options set from a Delphi Studio 2006 app? I.e
mailto:joe (AT) mail (DOT) com,subject=news |
|
| Back to top |
|
 |
leehanken Guest
|
Posted: Thu Dec 28, 2006 4:04 am Post subject: Re: invoke email app |
|
|
see http://delphi.about.com/od/windowsshellapi/a/executeprogram.htm
uses ShellApi;
....
var em_subject, em_body, em_mail : string;
begin
em_subject := 'This is the subject line';
em_body := 'Message body text goes here';
em_mail := 'mailto:delphi.guide (AT) about (DOT) com?subject=' +
em_subject + '&body=' + em_body ;
ShellExecute(Handle,'open',
PChar(em_mail), nil, nil, SW_SHOWNORMAL) ;
end;
Peter wrote:
| Quote: | How can I easily get the default email program to start up with some
options set from a Delphi Studio 2006 app? I.e
mailto:joe (AT) mail (DOT) com,subject=news |
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|