Witam!
Probuje napisac program ktory wysyla poczte na podany przez urzytkownika adres e-mail. O to procedurka:
IdMessage1.Body.Append('TREŚĆ MAILA');
IdMessage1.Recipients.EMailAddresses := 'puchiqdance@wp.pl';
IdMessage1.Subject := 'Proba Maila';
idSMTP1.Password := 'puchi85';
idSMTP1.Username := 'puchi@op.pl';
idSMTP1.Host := 'smtp.poczta.onet.pl';
IdSMTP1.Connect;
try
IdSMTP1.Send(IdMessage1);
finally
IdSMTP1.Disconnect;
end;
do wysyłania uzywam Indy 10 i mam problem bo wiadomosci nie sa wysyłane. Mysle ze jest to spowodowane brakiem trybu authentifikacji. Spotkalem sie z takim jego zapisem:
IdSMTP1.AuthenticationType := atLogin;
ale u mnie to nie dziala wywala takie bledy:
[Error] Unit1.pas(39): Undeclared identifier: 'AuthenticationType'
[Error] Unit1.pas(39): Undeclared identifier: 'atLogin'
Pracuje na delphi 5. Czy ma ktos jakis pomysly jak to zmienic?