Sending email with OAuth 2.0 in QlikView | QlikView Help
Skip to main content Skip to complementary content

Sending email with OAuth 2.0 in QlikView

Last updated: 9/29/2026

QlikView can send email through Microsoft Graph by using OAuth 2.0 with Microsoft 365. OAuth 2.0 is an additional mail connection method; existing SMTP configuration remains available.

When OAuth 2.0 is selected, QlikView does not connect directly to an SMTP server. It obtains an access token from login.microsoftonline.com and sends email through the Microsoft Graph REST API at graph.microsoft.com/v1.0/users/{sender}/sendMail.

Prerequisites

Before configuring QlikView, register an application in Microsoft Entra ID:

  1. Sign in to the Azure portal and go to Microsoft Entra ID > App registrations > New registration.
  2. Register the application.
  3. Under Certificates & secrets, create a client secret and copy its value. The value is displayed only once.
  4. Under API permissions, add the Microsoft Graph Mail.Send application permission.
  5. Grant admin consent for the permission.
  6. Record the Application (client) ID and Directory (tenant) ID.

The application must have Mail.Send permission for the mailbox used as the sender.

Security

QlikView encrypts the Tenant ID, Client ID, and Client Secret before storing them. The credentials are not stored as plain text.

Testing OAuth 2.0 mail

Use the test-mail control in the configuration page:

  • In QlikView Desktop, click Test on the User Preferences > Mail page.
  • In the QlikView Management Console, enter an address in Send Test E-mail To and click Send.

QlikView obtains an OAuth 2.0 token and sends the test email through Microsoft Graph. If a step fails, review the error message.

File attachments

When QlikView sends email with attachments, it includes the attachments inline in the Microsoft Graph request as Base64-encoded content. Each attachment is limited to 3 MB. For larger files, use another delivery method.

Troubleshooting

Error Cause Resolution
OAuth 2.0 Client ID, Tenant ID, and Client Secret are required. One or more OAuth fields are empty. Verify that all three fields are filled in on the mail settings page.
OAuth token request failed: AADSTS7000215 The client secret is invalid. Generate a new client secret in Microsoft Entra ID and update QlikView.
OAuth token request failed: AADSTS700016 The Application (client) ID is incorrect or the application does not exist in the specified tenant. Verify the Application (client) ID and Directory (tenant) ID.
Graph sendMail failed: ErrorAccessDenied The application does not have Mail.Send permission, or admin consent was not granted. Add the Mail.Send application permission and grant admin consent in Microsoft Entra ID.
Graph sendMail failed: ErrorItemNotFound The sender address does not correspond to a valid mailbox in the tenant. Make sure the sender address matches an existing Microsoft 365 mailbox.
Attachment too large A file attachment exceeds the 3 MB inline limit. Reduce the file size or use another delivery method.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!

Join the Analytics Modernization Program

Remove banner from view

Modernize without compromising your valuable QlikView apps with the Analytics Modernization Program. Click here for more information or reach out: ampquestions@qlik.com