Elasticsearch Rule SMTP Action - How to include line breaks

{{#context.hits}}
Source IP Address: {{_source.src_ip}}
Message {{_source.new_port}}
{{/context.hits}}


I need spaces after every context entry , right now its all jammed together

Source IP Address:
Message
Source IP Address:
Message 
Source IP Address:
Message 
Source IP Address:
Message 
Source IP Address:
Message 
Source IP Address:
Message 


and \n doesnt work

Hello @Elk_huh

Could you please share the ELK version?

On 9.2.0 have tried below format & see it is working :

{
  "customers_text": "{{#context.hits}}- Customer First Name: {{_source.customer_first_name}}\n Customer Gender: ({{_source.customer_gender}})\n\n{{/context.hits}}",
  "@timestamp": "{{date}}"
}

Thanks!!

8.17 , right now its not interpreting the HTML , once output to email , it shows the \n