Forum Discussion

kimminjeong's avatar
kimminjeong
Copper Contributor
Dec 28, 2022

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

 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
No RepliesBe the first to reply

Resources