I'm having an issue where a client is receiving incomplete emails.
They suspect the culprit has something to do with the source code of the email is including two (2) open and closing HTML tags.
The emails are being sent to an external system as well.
Here's the HTML the client is receiving (note that i've removed any details about the client in the email)
<html><body><html><body lang="EN-AU" link="blue" vlink="#A2C617" style='font-family:Calibri'/><p><div><font face="Calibri" size="3" color="#4B4B4B"/><b></b><br/><b>Appointment Type: </b> <b>Name: </b> <b>Position Title: </b> <b>Commencement Date: </b> <b>C-Level: </b> <b>Classification: </b> <b>Supervisor Name: </b> <b>Supervisor Contact: </b> <b>Appian Reference: </b> 2225561<a href=""/>Click Here for Further Details</a><br/></div></p></html></body></html>
On the top and bottom lines there are two HTML open and close tags,
I've checked the template I'm using to format these emails and the source looks like this
<HTML><head><meta http-equiv=Content-Type content="text/html; charset=windows-1252"><meta name=Generator content="Microsoft Word 14 (filtered)"><title>Email Template</title></head><body lang=EN-AU link=blue vlink="#A2C617" style='font-family:Calibri'><p><PRE><font face="Calibri" size="3" color="#4B4B4B"><b></b><br><b>Appointment Type: </b> ###appointmentType###<b>Name: </b> ###name###<b>Position Title: </b> ###positionTitle###<b>Commencement Date: </b> ###startDate###<b>C-Level: </b> ###clevel###<b>Classification: </b> ###classification###<b>Supervisor Name: </b> ###supName###<b>Supervisor Contact: </b> ###supEmail###<b>Appian Reference: </b> ###reference###<a href="###link###">Click Here for Further Details</a><br></HTML>
Where there's only a single open and close tag, as it should be
What could be a possible reason causing this?
Discussion posts and replies are publicly visible
Thank you for bringing new knowledge to everyone, it is very helpful subway surfers
Hi,
Not sure on this, some times HTML templates won't work properly due to template changes. I would suggest you to create an expression rule and add your html logic in that rule. It will gives lot of flexibility.
To avoid the suspicious use striphtml(html). Refer this link: https://docs.appian.com/suite/help/22.1/fnc_text_striphtml.html
When i am looking in your code i feel that you can remove the meta tag and you can add <!DOCTYPE html> on top of HTML tag.
I just edited your code and try this.
<!DOCTYPE html><html><head><title>Email Template</title>
<style>
body { background-color: lightblue;}p { font-family: verdana; font-size: 20px;}
</style></head><body><b>Appointment Type: </b> <p>###appointmentType###</p><b>Name: </b> <p>###name###</p><b>Position Title: </b> <p>###positionTitle###</p><b>Commencement Date: </b> <p>###startDate###</p><b>C-Level: </b> <p>###clevel###</p><b>Classification: </b> <p>###classification###</p><b>Supervisor Name: </b> <p>###supName###</p><b>Supervisor Contact: </b> <p>###supEmail###</p><b>Appian Reference: </b> <p>###reference###</p><a href="###link###">Click Here for Further Details</a></body></html>