Jump to content

HTML Emails


Recommended Posts

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?

Link to comment
Share on other sites

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

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

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
Link to comment
Share on other sites

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
 Share

×
×
  • Create New...