Session Logon

This application demonstrates how to connect directly:

  • using an email address, username and password (using Exchange Autodiscover),
  • using an Exchange service url, username and password,
  • using OAuth2
  • using profiles (using the Easy EWS Profile Manager):

It also demonstrates which logon options are available and how to use them.

Example code:

  EWSSession.AutodiscoverEMail      := edtAutodiscoverEMail.Text
  EWSSession.PasswordDialog         := False;
  EWSSession.Credentials.UserName   := edtDomain.Text + '\' + edtUserName.Text;
  EWSSession.Credentials.Password   := edtPassword.Text;
  EWSSession.Active := True;


Back to Examples