Unit1.pas
上传用户:netnetfish
上传日期:2021-01-14
资源大小:413k
文件大小:1k
- unit Unit1;
- interface
- uses
- Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
- Dialogs, Rio, SOAPHTTPClient, StdCtrls, InvokeRegistry;
- type
- TForm1 = class(TForm)
- HTTPRIO1: THTTPRIO;
- Edit1: TEdit;
- Edit2: TEdit;
- Edit3: TEdit;
- Button1: TButton;
- Memo1: TMemo;
- Label1: TLabel;
- Label2: TLabel;
- Label3: TLabel;
- procedure Button1Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
- var
- Form1: TForm1;
- implementation
- uses IEmailService1;
- {$R *.dfm}
- procedure TForm1.Button1Click(Sender: TObject);
- begin
- if (HTTPRIO1 as IEmailService).SendMail(Edit1.Text,Edit2.Text,Edit3.Text,Memo1.Text) = 0 then
- ShowMessage('发送成功!');
- end;
- end.