Jeremy Posted June 22, 2022 Share Posted June 22, 2022 We are trying to create an email using HTML in the source function, but when we copy and paste in some HTML and save it, the resulting email gets sent as 'Null'. When you then go back into the template it is blank. Is Hornbill capable of sending HTML emails? Link to comment Share on other sites More sharing options...
Steve Giller Posted June 22, 2022 Share Posted June 22, 2022 6 minutes ago, Jeremy said: Is Hornbill capable of sending HTML emails? All of Hornbill's emails are HTML. 6 minutes ago, Jeremy said: when we copy and paste in some HTML and save it, the resulting email gets sent as 'Null' ... When you then go back into the template it is blank. This makes me feel that what you're pasting is invalid, and is failing to update the Template. What are you copying/pasting, and, possibly more importantly, from where? If it's from a Microsoft document that's probably a very bad idea. Link to comment Share on other sites More sharing options...
Jeremy Posted June 22, 2022 Author Share Posted June 22, 2022 It was written by one of my colleagues, I have attached the file for reference SM.txt Link to comment Share on other sites More sharing options...
Steve Giller Posted June 22, 2022 Share Posted June 22, 2022 That worked fine on my Instance. Created the Template, sent an email from a BPM, reopened the Template - all good. 1 Link to comment Share on other sites More sharing options...
James Ainsworth Posted June 22, 2022 Share Posted June 22, 2022 It didn't work for me the first time. Tried again and all good. I possibly missed something on the first copy and paste. 1 Link to comment Share on other sites More sharing options...
Jeremy Posted June 22, 2022 Author Share Posted June 22, 2022 I will try again Link to comment Share on other sites More sharing options...
Jeremy Posted June 23, 2022 Author Share Posted June 23, 2022 We have finally got this working and we want to add custom fields but is there a way to add for example {{.H_custom_t|empty}} but to display a specific text e.g. None in place of 'empty' Link to comment Share on other sites More sharing options...
James Ainsworth Posted June 23, 2022 Share Posted June 23, 2022 Hi @Jeremy Have you had a look at ESP Conditions? The empty modifier is a simple instruction to the code to say where to hide or show the entire variable based on if it is empty or not. However, using the ESP Conditions, you can not only manipulate if a variable is displayed or not, you can also apply this to any text within the template. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now