POP, IMAP, and SMTP settings for Hotmail accounts at Live.com

If you're trying to add your Hotmail or Live.com account to another mail app, you might need the POP, IMAP, or SMTP settings for Outlook.com. You can find them below or by going to POP and IMAP settings in Outlook.com
 
//https://support.office.com/en-us/article/pop-imap-and-smtp-settings-for-outlook-com-d088b986-291d-42b8-9564-9c414e2aa040
//https://go.microsoft.com/fwlink/p/?linkid=858201
procedure TForm1.btnIMAPClick(Sender: TObject);
begin
  clImap.Server := 'imap-mail.outlook.com';
  clImap.Port := 993;
  clImap.UseTLS := ctImplicit;

  clImap.UserName := '_user_@hotmail.com';
  clImap.Password := 'secret';

  clImap.Open();
  clImap.GetMailBoxes(Memo1.Lines);
  clImap.Close();
end;
By default, the POP3 access is disabled at Live.com account settings. Please navigate to POP and IMAP settings in Outlook.com for configuring the account security.
//by default, disabled
procedure TForm1.btnPOPClick(Sender: TObject);
var
  cnt: Integer;
begin
  clPop.Server := 'pop-mail.outlook.com';
  clPop.Port := 995;
  clPop.UseTLS := ctImplicit;

  clPop.UserName := '_user_@hotmail.com';
  clPop.Password := 'secret';

  clPop.Open();
  cnt := clPop.MessageCount;
  clPop.Close();

  ShowMessage(IntToStr(cnt));
end;
procedure TForm1.btnSMTPClick(Sender: TObject);
begin
  clSmtp.Server := 'smtp-mail.outlook.com';
  clSmtp.Port := 587;
  clSmtp.UseTLS := ctExplicit;

  clSmtp.UserName := '_user_@hotmail.com';
  clSmtp.Password := 'secret';

  clSmtp.Open();
  clSmtp.Noop();
  Memo1.Lines := clSmtp.Extensions;
  clSmtp.Close();
end;

Add Feedback