Jump to content

Recommended Posts

Posted

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

image.png.676a20e2d1e1bb39d99413e54b455f6f.png

When you then go back into the template it is blank. Is Hornbill capable of sending HTML emails?

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

Posted

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'

Posted

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.

image.png

  • Thanks 1

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...