Open tallen1114 opened 1 month ago
Hey @tallen1114
Thank you for reporting the issue around AppendOnSend
feature on Outlook for Web.
We have put it in our backlog, and unfortunately have no timelines to share.
Internal tracking id : 279321
Thanks @rajjha-msft This is causing a huge impact to our users 😭 Any ideas for workarounds? We're trying to insert flags into the html body of the message in a way that won't be visible to recipients. This used to work...
Rest assured that we are currently prioritizing the resolution of the issue you have brought to our attention. We appreciate your patience and apologize for any inconvenience this may have caused.
Certain HTML tags are being stripped when calling
appendOnSendAsync
from Outlook WebYour Environment
Expected behavior
HTML that is sent to
appendOnSendAsync
gets appended to the end of the email, unchangedCurrent behavior
Certain tags are being removed from the html
Steps to reproduce
appendOnSendAsync
and pass in html such as<span><br id="myId"></span>
<br>
was appended.Provide additional details
This works when sending from a Desktop Client, but behaves differently on Web.
Here's how we're calling appendOnSendAsync:
This is the
html
parameter that gets passed into that function:"<p class="MsoNormal" style="display:none; overflow:hidden; visibility:hidden; line-height:0; font-size:0; max-height:0; max-width:0;"><img src="url-for-image" style="display: none; border: 0; width: 0; height: 0; overflow: hidden;" width="0" height="0" border="0"><br id="yw-custom-id"> </p>"
And this is what ends up getting appended to the body once the email is sent - some of the styles are gone, as well as the
id
on the br tag:<p style=3D"line-height: 0; max-width: 0px; max-height: 0px; font-size: 0px;"><img style=3D"width: 0px; height: 0px; margin-top: 0px; margin-bottom: 0px;" src=3D"url-for-image"><br>