Forum Discussion
kimminjeong
Dec 28, 2022Copper Contributor
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
},
}
}
endpoint = 'https://graph.microsoft.com/v1.0/me/sendMail'
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