Advertisement
Guest User

Untitled

a guest
Feb 29th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. unit Unit18;
  2.  
  3. interface
  4.  
  5. uses
  6. Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
  7. Vcl.Controls, Vcl.Forms, Vcl.Dialogs,ssl_openssl,imapsend, Vcl.StdCtrls,
  8. IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient,
  9. IdExplicitTLSClientServerBase, IdMessageClient, IdIMAP4, sButton;
  10.  
  11. type
  12. TForm18 = class(TForm)
  13. sButton1: TsButton;
  14.  
  15. procedure sButton1Click(Sender: TObject);
  16. private
  17. { Private declarations }
  18. public
  19. { Public declarations }
  20. end;
  21.  
  22. var
  23. Form18: TForm18;
  24. IMAP: TimapSend;
  25.  
  26. implementation
  27.  
  28. {$R *.dfm}
  29.  
  30. procedure TForm18.sButton1Click(Sender: TObject);
  31. begin
  32. IMAP := TIMAPSend.Create;
  33.  
  34. IMAP.TargetHost := 'imap.yandex.ru';
  35. IMAP.TargetPort := '933';
  36. IMAP.UserName := 'black.golle';
  37. IMAP.PAssword := 'j98j9j01';
  38. IMAP.FullSSL:=true;
  39. showmessage(IMAP.ResultString);
  40.  
  41.  
  42. end;
  43.  
  44. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement