L
laohe
Unregistered / Unconfirmed
GUEST, unregistred user!
大家帮我看看.错在哪里,谢谢!
procedure TFormmail.BtnCancelClick(Sender: TObject);
begin
SakSMTP1.host := 'smtp.163.com';
SakSMTP1.Port:='25';
SakSMTP1.UserId:='aaaaa@163.com';
SakSMTP1.UserPasswd:='bbbbb';
SakMsg1.TextEncoding := teBase64;
SakMsg1.CharSet:='iso-8859-1';
SakMsg1.UserName := 'aaaaa@163.com';
SakMsg1.From := 'aaaaa@163.com';
SakMsg1.SendTo := 'aaaaa@163.com';
SakMsg1.Subject := '标题';
SakMsg1.Text.Assign(Memo1.Lines);
SakSMTP1.connect;
if not SakSMTP1.SMTPError then
begin
SakSMTP1.SendTheMessage(SakMsg1);
SakSMTP1.Disconnect;
end;
SakMsg1.Free;
SakMsg1:=TSakMsg.Create(self);
end;
procedure TFormmail.BtnCancelClick(Sender: TObject);
begin
SakSMTP1.host := 'smtp.163.com';
SakSMTP1.Port:='25';
SakSMTP1.UserId:='aaaaa@163.com';
SakSMTP1.UserPasswd:='bbbbb';
SakMsg1.TextEncoding := teBase64;
SakMsg1.CharSet:='iso-8859-1';
SakMsg1.UserName := 'aaaaa@163.com';
SakMsg1.From := 'aaaaa@163.com';
SakMsg1.SendTo := 'aaaaa@163.com';
SakMsg1.Subject := '标题';
SakMsg1.Text.Assign(Memo1.Lines);
SakSMTP1.connect;
if not SakSMTP1.SMTPError then
begin
SakSMTP1.SendTheMessage(SakMsg1);
SakSMTP1.Disconnect;
end;
SakMsg1.Free;
SakMsg1:=TSakMsg.Create(self);
end;