-
Notifications
You must be signed in to change notification settings - Fork 0
/
Share.pas
45 lines (37 loc) · 1.2 KB
/
Share.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
unit Share;
interface
uses
System.SysUtils, System.Types, System.UITypes, System.Classes, System.Variants,
FMX.Types, FMX.Controls, FMX.Forms, FMX.Graphics, FMX.Dialogs, System.Actions,
FMX.ActnList, FMX.Objects, System.Net.URLClient, System.Net.HttpClient,
System.Net.HttpClientComponent, FMX.StdCtrls, FMX.Edit,
FMX.Controls.Presentation, FMX.Memo.Types, FMX.ScrollBox, FMX.Memo,
FMX.WebBrowser, ShellApi;
type
TForm7 = class(TForm)
Image2: TImage;
Label1: TLabel;
Edit1: TEdit;
Button1: TButton;
NetHTTPClient1: TNetHTTPClient;
NetHTTPRequest1: TNetHTTPRequest;
Memo1: TMemo;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form7: TForm7;
implementation
{$R *.fmx}
procedure TForm7.Button1Click(Sender: TObject);
begin
//Memo1.Lines.Add('mailto:' + Edit1.Text + '?subject:Message Subject&body=Message Content');
// NetHTTPRequest1.MethodString := 'GET';
// NetHTTPRequest1.URL := Memo1.Text;
// NetHTTPRequest1.Execute();
ShellExecute(0, 'OPEN', PWideChar('mailto:' + Edit1.Text + '?subject:Message Subject&body=Message Content'), nil, nil, 0);
end;
end.