Hi Appian Community,
I'm facing an issue where the email content is being sent with only partial text, and some parts of the HTML text are getting removed. Below is the HTML text I’m using for the email body:
<p><span style="font-size: 10pt;">Dear colleagues,</span></p> <p style="text-align:start;"><span style=""><span windowtext="" 1.0pt;mso-border-alt:none="" 0in;padding:0in;mso-ansi-language:en-us'="" style="font-size: 10pt;"> </span></span><span style="font-size:10.0pt;"></span></p> <p style="text-align:start;"><span style=""><span windowtext="" 1.0pt;mso-border-alt:none="" '="" style="">Please note that the EU approval by CHMP Positive opinion has been granted on 05 December 2024 for </span><span style="">KEYTRUDA (pembrolizumab) for variation EMEA/H/C/3820/II/016 which removes the instruction "Remove from light" for the diluted product from the Product information</span></span><span style="">.</span></p>
<!-- More content follows -->
However, when the email is received, it’s missing some parts of the content, and the text directly after "Dear colleagues" jumps to "Priority level -", without showing the rest of the content.
It seems like some sections of the text are being truncated or removed altogether.
Has anyone faced this issue before? Is it happening because of tags like windowtext and mso-border-alt as they are word styling tags, because when i removed these tags, I was able to get full text in the email, but I don't understand why this is happening because of these tags? Any suggestions on how to resolve this and ensure that the full HTML content is sent correctly in the email?
Discussion posts and replies are publicly visible
I don't see any "Priority Level" in your text so not sure what exactly is being cut off.
Why do you need those tags anyways?
Pretty sure this does the same thing:
<p>Dear colleagues,</p> <p> </p> <p>Please note that the EU approval by CHMP Positive opinion has been granted on 05 December 2024 for KEYTRUDA (pembrolizumab) for variation EMEA/H/C/3820/II/016 which removes the instruction "Remove from light" for the diluted product from the Product information .</p>
ashishc8459 said:Is it happening because of tags like windowtext and mso-border-alt as they are word styling tags
Hello ashishc8459 ,
I think yes. the reason might be the tags. I've done some research and it says that these tags work only for the MS Word Styling. So I recommend use some alternate way of styling your html template. Or you can avoid the styling and simply use the block which Mathieu has provided.