graph-mailer

Microsoft Graph API client that send emails on behalf of a user using a CLI interface


Keywords
email, outlook, graph, microsoft
License
MIT
Install
npm install graph-mailer@1.0.1

Documentation

Graph-Mailer

Logo

CLI tool that send emails on behalf of a user using Microsoft Graph API.

Note: This package uses the graph-interface package behind the scenes.

Installation

You can install this package globally from NPM.

Graph API

To use this tool, an Azure App Registration is required.

The App Registration must have the following permissions:

  • User.Read (Delegated);
  • Mail.Send (Delegated).

The redirect URI must be set to web and have the value of http://localhost:9090.

The App Registration must have a client secret.

The required values to use in this tool are:

  • Client ID;
  • Client Secret;
  • Tenant ID.

Usage

  • auth: Manages authentication with Microsoft Graph API;
  • send: Send an email of behalf of the logged in user.