Skip to content

otienogeoffrey812/nodejs-send-emails-using-microsoft-graph-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-send-emails-using-microsoft-graph-api

Register the application

  • Sign in to the Azure portal. https://portal.azure.com
  • If you have access to multiple tenants, use the Directories + subscriptions filter in the top menu to switch to the tenant in which you want to register the application.
  • Search for and select Azure Active Directory.
  • Under Manage, select App registrations > New registration. Enter a Name for your application then Select Register.
  • Under Manage, select Certificates & secrets.
  • Under Client secrets, select New client secret, enter a name, and then select Add. Record the secret value in a safe location for use in a later step. Under Manage, select API Permissions > Add a permission. Select Microsoft Graph. Select Application permissions.
  • Under User node, select User.Read.All and Mail.Send, then select Add permissions.

Technology and stack

  • Node
  • Express
  • @azure/msal-node
  • axios
  • joi
  • dotenv

Commands

  • To install dependancies run npm install
  • To run the application locally run npm run start

Releases

No releases published

Packages

No packages published