https://graph.microsoft.com/v1.0/me/sendMail change sender displayName

Copper Contributor
 request_body = {
        'message': {
            'toRecipients': [
                {
                    'emailAddress': {
                        'address': decoded_email
                    }
                }
            ],
            'subject': 'subject',
            'importance': 'normal',
            'body': {
                'contentType': 'HTML',
                'content': message_text_html
            },
        }
    }

    response = requests.post(endpoint, headers=headers, json=request_body)
 
i want to send mail using https://graph.microsoft.com/v1.0/me/sendMail and want to change display Name which represents sender but i don't know how to change
0 Replies