BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

invoke email app

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General)
View previous topic :: View next topic  
Author Message
Peter
Guest





PostPosted: Mon Dec 25, 2006 2:54 am    Post subject: invoke email app Reply with 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
leehanken
Guest





PostPosted: Thu Dec 28, 2006 4:04 am    Post subject: Re: invoke email app Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi (General) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.