Azure B2B Customize Email format for Guest Users

Prashu 56 Reputation points
2020-09-12T03:45:11.443+00:00

How can we customize email to html format while inviting guest users from Graph API ?

Reference: https://learn.microsoft.com/en-us/graph/api/invitation-post?view=graph-rest-1.0&tabs=http

I have the html
InviteMessage= "<table border=\"2\" bgcolor=\"yellow\">" +
"<tr><td>Test Invite</td><td></td><td></td></tr>" +
"</table>";
and would like to send it using Graph api/SDK

invitation.InvitedUserMessageInfo = new InvitedUserMessageInfo  
        {  
            CustomizedMessageBody = InviteMessage  
        };  

Whenever I try to send this, invitation body would appear as
<table border="2" bgcolor="yellow"> <tr><td>Test Invite</td><td></td><td></td></tr></table>

in the recipient email with no formatting. Am I missing something. ?

Also is it possible to remove "This message was provided by the sender and is not from Microsoft Corporation." and phishing part in the email

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,455 questions
Microsoft Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. James Hamil 27,221 Reputation points Microsoft Employee Moderator
    2020-09-16T20:20:11.81+00:00

    Hi, unfortunately this is not possible to do currently. This documentation details the available options you have for invitation messages. If you would like, you can submit a feature request here. Please let me know if I can help you with anything else!


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.