Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 532 Bytes

File metadata and controls

32 lines (26 loc) · 532 Bytes
description Automatically generated file. DO NOT MODIFY
const options = {
	authProvider,
};

const client = Client.init(options);

const message = {
    subject: 'Did you see last night\'s game?',
    importance: 'Low',
    body: {
        contentType: 'HTML',
        content: 'They were <b>awesome</b>!'
    },
    toRecipients: [
        {
            emailAddress: {
                address: 'AdeleV@contoso.com'
            }
        }
    ]
};

await client.api('/me/messages')
	.post(message);