E
ExTeC
Код
Пишет ошибку
valid RCPT command must precede DATA
P. S. Дельфя 7...
Код:
var DateTime: TDateTime;
i: integer;
begin
if SMTP.Connected then SMTP.Disconnect;
SMTP.Host := Edit2.Text;
SMTP.Port := StrToInt(Edit4.Text);
SMTP.UserName := Edit6.Text;
SMTP.Password := Edit8.Text;
IdMsgSend.Body.Assign(Memo2.Lines);
IdMsgSend.From.Name := LabeledEdit5.Text;
IdMsgSend.From.Address := LabeledEdit6.Text;
IdMsgSend.Sender.Address := LabeledEdit7.Text;
IdMsgSend.Subject := LabeledEdit8.Text;
DateTime := GetTime;
IdMsgSend.Date := DateTime;
SMTP.Connect;
if StrToInt(Edit9.Text) >= 0 then
begin
for i := 1 to StrToInt(Edit9.Text) do
begin
SMTP.Send(IdMsgSend);
end;
end;
SMTP.Disconnect;
end;
valid RCPT command must precede DATA
P. S. Дельфя 7...