diff --git a/OnedriveApp.js b/OnedriveApp.js index 0ed2d48..32e2857 100644 --- a/OnedriveApp.js +++ b/OnedriveApp.js @@ -789,8 +789,10 @@ function getCode(e) { if (e.cc && Array.isArray(e.cc)) { temp.message.ccRecipients = e.cc.map(function(f) { return { - name: f.name, - emailAddress: f.email + emailAddress: { + name: f.name, + address: f.email + } }; }); delete e.cc; @@ -798,8 +800,10 @@ function getCode(e) { if (e.bcc && Array.isArray(e.bcc)) { temp.message.bccRecipients = e.bcc.map(function(f) { return { - name: f.name, - emailAddress: f.email + emailAddress: { + name: f.name, + address: f.email + } }; }); delete e.bcc; diff --git a/README.md b/README.md index 38ec678..351bcbf 100644 --- a/README.md +++ b/README.md @@ -556,6 +556,10 @@ If you have any questions and commissions for me, feel free to tell me. [1 method for retrieving the access token](#utilities) and [7 methods for managing emails of Microsoft account](#email) were added. By this, the emails got to be able to be gotten and sent using Microsoft account using OnedriveApp with Google Apps Script. +- v1.2.1 (July 26, 2023) + + A bug of "Send Email messages" was removed. + # Performance test - November 20, 2022: No errors and no issues occur.