# Sending Emails using the Microsoft Graph API

To send emails using the Microsoft Graph API, make sure you have a working Microsoft Graph installation, by following the [connecting-to-the-microsoft-graph-api](https://docs.infotopics.com/mailscheduler/configuration/connecting-to-the-microsoft-graph-api "mention") setup steps.

<figure><img src="https://1937398298-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOEnvavVjEKojggGVc69T%2Fuploads%2FzmH9WXCkPiB0kRfL6lHp%2Fimage.png?alt=media&#x26;token=36bd4233-743d-491b-b164-468b1b135e63" alt=""><figcaption></figcaption></figure>

Afterwards, you can navigate to the MailScheduler settings, and then click on the Mail Provider tab. Here, you can choose between SMTP and Microsoft Graph.&#x20;

Make sure that the 'Global "From" address' matches the address that is used to log in to the Microsoft Graph API, or you will not be able to send emails!
