question

PrashuDA avatar image
0 Votes"
PrashuDA asked azure-cxp-api edited

Azure B2B Customize Email format for Guest Users

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

Reference: https://docs.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-managementazure-ad-graphazure-ad-b2b
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Does anyone have an answer ?

0 Votes 0 ·

Sorry for the delay, I am checking internally with the product teams and will get back to you as soon as possible.

0 Votes 0 ·

Thanks. I have been waiting since Friday. Please expedite.

1 Vote 1 ·

1 Answer

JamesHamil-MSFT avatar image
0 Votes"
JamesHamil-MSFT answered JamesTran-MSFT commented

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!


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@PrashuDA
I just wanted to check in and see if you required additional assistance or if you were able to resolve this issue?


If any reply/answer helped resolve your question, please remember to "mark as answer" so that others in the community facing similar issues can easily find the solution.

0 Votes 0 ·