Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 595 Bytes

File metadata and controls

39 lines (33 loc) · 595 Bytes
description Automatically generated file. DO NOT MODIFY
const options = {
	authProvider,
};

const client = Client.init(options);

const sendMail = {
  message: {
    subject: 'Project kickoff',
    toRecipients: [
      {
        emailAddress: {
          name: 'Samantha Booth',
          address: 'samanthab@contoso.com'
        }
      }
    ],
    mentions: [
      {
        mentioned: {
          name: 'Dana Swope',
          address: 'danas@contoso.com'
        }
      }
    ]
  }
};

await client.api('/me/sendMail')
	.version('beta')
	.post(sendMail);