> ## Documentation Index
> Fetch the complete documentation index at: https://support.getskara.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# How To Add Custom Greetings In the Email Template?

You can add custom greetings like Good Morning or Good Night in your Emails automatically via Email Template. To create an email template:

Navigate to **More Icons** on left menu barClick on **Email Templates** Click on **+ New Email Template** to create a template.

<img src="https://mintcdn.com/salesmate/skt_bqXbUodm2quu/emails/faqs/images/mceclip0-3.png?fit=max&auto=format&n=skt_bqXbUodm2quu&q=85&s=fb3afe5dd0d024958c5d5986dadb087e" alt="mceclip0.png" width="2935" height="1613" data-path="emails/faqs/images/mceclip0-3.png" />

Select **Simple Text** type of Email Template. Paste the following Code in the starting of the template.

```
| &#123;% assign day = "00:00" | convert: "date" %&#125; |
| &#123;% assign end\_day = "12:00" | convert: "date" %&#125; |
| &#123;% assign night= "20:00" | convert: "date" %&#125; |
| &#123;% assign end\_night= "23:59" | convert: "date" %&#125; |
| &#123;% capture now\_time %&#125; &#123;&#123;'now' | date: "%H:%M" &#125;&#125;&#123;% endcapture %&#125; |
&#123;% if now\_time & gt; end\_day and now\_time & lt; end\_night%&#125;
 Good Night
&#123;% else %&#125; Good Morning! &#123;% endif %&#125;
```

<img src="https://mintcdn.com/salesmate/skt_bqXbUodm2quu/emails/faqs/images/mceclip01-2.png?fit=max&auto=format&n=skt_bqXbUodm2quu&q=85&s=ee88a76e023d3de59bb0989b097aa670" alt="mceclip0.png" width="1845" height="854" data-path="emails/faqs/images/mceclip01-2.png" />

Add the Template\*\* Name.

* **Create/Select** the folder where you would like to store this email template.Mention the **Subject** Line of the Email. You can also insert dynamic attributes to send personalized emails and Hit\*\* Next.\*\* Hit on Update and update the email template.

<img src="https://mintcdn.com/salesmate/skt_bqXbUodm2quu/emails/faqs/images/mceclip1-3.png?fit=max&auto=format&n=skt_bqXbUodm2quu&q=85&s=aa5fa450748500ab546f18c3cc35a8c4" alt="mceclip1.png" width="871" height="822" data-path="emails/faqs/images/mceclip1-3.png" />
