This doc looks like a decent reference: https://learn.microsoft.com/en-us/graph/tutorials/python-email