P
poim111
Unregistered / Unconfirmed
GUEST, unregistred user!
这是一个实现邮件发送得短程序:
Memo_gettxt.Lines.add(g_str);
SMTP1.AuthenticationType := atLogin;
SMTP1.username:= 'aaa@163.com';
SMTP1.Password := '123456';
SMTP1.Host := 'SMTP.163.com';
SMTP1.Port :=25;
try
SMTP1.Connect;
except
Exit;
end;
try
with IdMsg do
begin
body.Clear;
Body.Assign(Memo_gettxt.Lines);
From.address := 'aaa@163.com';
Recipients.EMailAddresses :='bbb@eyou.com';
Subject:=g_str;
end;
SMTP1.Send(IdMsg);
Memo_gettxt.Clear;
Memo1.Clear;
finally
SMTP1.Disconnect;
end;
但是无法实现加栽附件得功能请问有人会么!
请用DELHPI自带得控件!
Memo_gettxt.Lines.add(g_str);
SMTP1.AuthenticationType := atLogin;
SMTP1.username:= 'aaa@163.com';
SMTP1.Password := '123456';
SMTP1.Host := 'SMTP.163.com';
SMTP1.Port :=25;
try
SMTP1.Connect;
except
Exit;
end;
try
with IdMsg do
begin
body.Clear;
Body.Assign(Memo_gettxt.Lines);
From.address := 'aaa@163.com';
Recipients.EMailAddresses :='bbb@eyou.com';
Subject:=g_str;
end;
SMTP1.Send(IdMsg);
Memo_gettxt.Clear;
Memo1.Clear;
finally
SMTP1.Disconnect;
end;
但是无法实现加栽附件得功能请问有人会么!
请用DELHPI自带得控件!