Witam,
Mam problem z wyslaniem maila poprzez komponent idsmtp kozystajac z servera smtp wymagajacego uwierzytelnianie, zmieniam ustawienie Authentication Type :=atLogin, podaje uzytkonika, haslo (korzystam z smtp.poczta.onet.pl) i niestety mimo komunikatu spowodowanego tą linijką:
if Mainfrm.SMTP1.Authenticate=true then Showmessage('authentication ok');
moj email nie zostaje wyslany...
A żeby ułatwić sprawe podaje kod z którego korzystam:
Mainfrm.Message.Recipients.EMailAddresses:='[email protected]';
Mainfrm.Message.ReceiptRecipient.Address := '[email protected]'; // nadawca
Mainfrm.Message.Subject := 'sms.idea.pl'; // temat
Mainfrm.Message.Body.Assign(Mainfrm.memo1.Lines); // tresc
Mainfrm.SMTP1.Username :='[email protected]';
Mainfrm.SMTP1.Password:='haslo';
Mainfrm.SMTP1.Host :='smtp.poczta.onet.pl';
Mainfrm.SMTP1.Connect(5000); // polacz z serwerem
if Mainfrm.SMTP1.Authenticate=true then Showmessage('authentication ok');
Mainfrm.SMTP1.SendMsg(Mainfrm.Message, True); // wyslij wiadomosc
Mainfrm.SMTP1.DisconnectSocket;
Mainfrm.SMTP1.Disconnect; // rozlacz
Czy moglby mi ktos pomoc rozwiazac ten problem ??
Za pomoc z góry dziekuje ...