Kod:
procedure TForm1.Button1Click(Sender: TObject);
begin
OpenDialog1.Execute;
Label1.Caption:=OpenDialog1.FileName;
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
IdMessage1.Body.Append(Memo1.Text);
IdMessage1.From.name := Edit1.Text;
IdMessage1.From.Address := Edit2.Text;
IdMessage1.Recipients.EMailAddresses := Edit3.Text;
IdMessage1.Subject := Edit4.Text;
TIdAttachment.Create(IdMessage1.MessageParts, Label1.Caption);
IdSMTP1.Host:= Edit5.Text;
IdSMTP1.Connect;
try
IdSMTP1.Send(IdMessage1);
finally
IdSMTP1.Disconnect;
showmessage('Wiadomosc wysłana prawidłowo!');
end;
end;
maila mam na o2 to w host wpisuje poczta.o2.pl
i wyskakuje mi okno
Path to source file:
idCPConnection.pas
Dlaczego??
a ak w koncu pisze ze wyslano to nic nie dochodz