Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,685 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I'm using react.js and have gotten to the point where I can send mail with plain text. I want to include clickable text which links to a site. Below is what I have set up for the body so far where myMessage is simply just a string.
sendMail = {
message: {
subject: subject,
body: { contentType: 'Text', content: myMessage},
toRecipients: [
{
emailAddress: { address: recipient },
},
],
ccRecipients: [
{
emailAddress: { address: cc },
},
],
},
}
graphMailer.post('/me/sendMail', sendMail).then((response) => {
console.log(response)
})
GOT IT!! All you have to do is change...
contentType: 'html'