Skip to content

Actionable messages via email is showing empty content in outlook #8

@Azhakeswari

Description

@Azhakeswari

Hi
I am using powershell script and smpt server to send email.

I am reading the html file from local path to send the actionable message for email.

Below is my html file:

<script type="application/adaptivecard+json">{ "type": "AdaptiveCard", "version": "1.0", "hideOriginalBody": true, "body": [ { "type": "TextBlock", "text": "Visit the Outlook Dev Portal", "size": "large" }, { "type": "TextBlock", "text": "Click **Learn More** to learn more about Actionable Messages!" }, { "type": "Input.Text", "id": "feedbackText", "placeholder": "Let us know what you think about Actionable Messages" } ], "actions": [ { "type": "Action.Http", "title": "Send Feedback", "method": "POST", "url": "https://...", "body": "{{feedbackText.value}}" }, { "type": "Action.OpenUrl", "title": "Learn More", "url": "https://docs.microsoft.com/outlook/actionable-messages" } ] } </script> Visit the Outlook Dev Portal to learn more about Actionable Messages.

reference :https://docs.microsoft.com/en-us/outlook/actionable-messages/send-via-email#feedback

only body tag part is visible in outlook not the json part.
Why the <Script>Json is not working?
What is the correct way to use this code?
What is file name i should use either filename.html or filename.Json?

JSON is working in codeplayground and not working if i save the filename as .html and .JSON.

Kindly guide me.

It would be grateful if someone help this out.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions