Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

6. After clicking on "Mobile and desktop applications" you will be asked to choose a "Redirect URI". This tells the app where it should go when it needs to authenticate a user. Choose the middle first option "https://login.livemicrosoftonline.com/oauth20_desktop.srf/common/oauth2/nativeclient", and leave "Custom redirect URIs" at the default (blank). Click the "Configure" button.

...

Image Added


7. Enable "Allow public client flows". Save.

...

1. In Jiwa, go to System Settings → Plugins → Plugin Maintenance, and load the "Email - Configuration Microsoft Graph REST API" plugin. Go . Check the Enabled checkbox and save.

Image Added


2. Go to the "System SettingsConfiguration" form an on the "Email - Configuration Microsoft Graph REST API" tab of the plugin and paste the "Application (client) ID" value (noted down from the previous section step 13) into the "ClientID" setting contents and the "Directory (tenant) ID" value (also noted down from the previous section step 13) into the "TenantID" setting contents.

Leave the RedirectURI blank - when blank the default for the authentication library is used.  If you had reason to change the Redirect URI for the App Registration in Azure, then enter the alternate Redirect URI here.

Save.

...

Image Added


2. Configure Load the staff records. Load a staff member via System Settings → Staff Configuration → Staff Maintenance . Enter the staff members Office 365 username and password in the "SMTP Username" and "SMTP Password" fields respectively. If you want the use to appear to be sending email from a different account (i.e. "contactus@jiwa.com.au" or "accounts@jiwa.com.au"), then enter the desired address and display name in the "Address" and "Display Name" fields. Save.

...

- on the Main tab, select "Microsoft Graph" as the Email Provider, and enter the Email address and Display name - these will be the default used when sending emails.

Image Added

If you are going to be emailing from services or applications which cannot interact with the user, then you must check the NonInteractive setting on the Custom Fields tab, AND you must also provide the Office365 credentials on the Main tab as the Username and Password.  You do not need to set these credentials if the NonInteractive field is left unchecked. 

Image Added

Image Added


Info
titleAlternate From Address

If you enter a value in the "Address" field that is not blank and differs from what is in the "SMTP Username" field, then that email address (the one in the "Address" field must also be a valid email account in Office 365, and must also be configured in Office 365 Admin to allow this user (the one in the "SMTP Username" field) to "Read and manage", "Send as", and "Send on behalf" . See the section below for setting such Office 365 permissions.

...