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.
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.