
Evan S. answered 08/02/24
Senior Technical Support Engineer at Microsoft
You will be using the REST API which is documented here by Microsoft: https://learn.microsoft.com/en-us/graph/api/resources/mail-api-overview?view=graph-rest-1.0#using-the-mail-rest-api
You will also need to learn to make a HTTP request using Go. Here is a decent tutorial on doing so: https://blog.logrocket.com/making-http-requests-in-go/
Please note that you will have to pay attention to authentication and authorization in the case of making mail operations on behalf of multiple users. You should refer to this documentation: https://learn.microsoft.com/en-us/graph/auth/auth-concepts