The graph provider sends email through the Microsoft Graph sendMail endpoint, authenticated with the same Azure App registration used for SharePoint.@sendgrid/mail is available as an additional transport if configured.Required variables
MAIL_PROVIDER=graph
MAIL_SENDER_UPN=notifications@reprodisseny.com # sender UPN in Azure AD
MAIL_TO=quotes@reprodisseny.com
# Azure credentials (shared with SharePoint integration)
AZURE_TENANT_ID=
AZURE_CLIENT_ID=
AZURE_CLIENT_SECRET=
Prerequisites
The Azure App registration must have the Mail.Send Microsoft Graph application permission granted by a tenant administrator. The MAIL_SENDER_UPN account must exist in the tenant.The graph provider sends email as the UPN user via the /users/{upn}/sendMail Graph endpoint. It does not require an SMTP relay or SendGrid API key when using Graph directly.