0
我需要通過電子郵件從Android應用程序發送郵件到使用Outlook郵件REST API的郵件組。 我該如何做到這一點?在documentation上我找不到任何有關組的信息。電子郵件到郵件組 - Outlook郵件API
我想避免的管理員用戶存儲在一個靜態配置文件和POST請求「https://outlook.office.com/api/v2.0/me/sendmail」用JSON內容,如:
{
"Message": {
"Subject": "ADMIN PIN FOR ANDROID APP",
"Body": {
"ContentType": "Text",
"Content": "The secret pin is: 12345"
},
"ToRecipients": [ // (list generated from config file)
{
"EmailAddress": {
"Address": "[email protected]"
}
},
{
"EmailAddress": {
"Address": "[email protected]"
}
}
],
"Attachments": [
{
"@odata.type": "#Microsoft.OutlookServices.FileAttachment",
"Name": "menu.txt",
"ContentBytes": "bWFjIGFuZCBjaGVlc2UgdG9kYXk="
}
]
},
"SaveToSentItems": "false"
}
感謝
你是什麼意思的聯繫人組,是否意味着郵件組? –
@ JeffreyChen-MSFT謝謝 –