Re: Sending email from a Delphi application
- From: Nicholas Sherlock <N.sherlock@xxxxxxxxx>
- Date: Fri, 25 Aug 2006 10:15:49 +1200
John wrote:
Try this:
var
S: array [0..255] of char;
Mail: String;
begin
Mail := 'mailto:e.brown@xxxxxxxxxxx' + '?subject=test';
StrPCopy(S, Mail);
ShellExecute(handle,'Open', S, nil, nil, SW_SHOW);
Or far more tidy, with no 255 character restriction:
ShellExecute(handle,'Open', PChar('mailto:e.brown@xxxxxxxxxxx' + '?subject=test'), nil, nil, SW_SHOW);
Cheers,
Nicholas Sherlock
--
http://www.sherlocksoftware.org
.
- References:
- Sending email from a Delphi application
- From: DIKonsult
- Re: Sending email from a Delphi application
- From: John
- Sending email from a Delphi application
- Prev by Date: Re: Sending email from a Delphi application
- Next by Date: Re: Sending email from a Delphi application
- Previous by thread: Re: Sending email from a Delphi application
- Next by thread: Re: Sending email from a Delphi application
- Index(es):