+ Start a Discussion
ryepesryepes 

Formulate an email template

Im trying to create an email template, but would like to add a formula or something that will populate based on the time "Good "Afternoon" "Morning" based on the time the person is sending the email. Any ideas on how i could do this?

HariDineshHariDinesh

Hi,

 

I can suggest you one thing here.

This approach will work's only when you send mail through Apex.

 

 

Create formula Field which will return "Morning" OR "Evening" OR "Night" based on the current time.

Now in apex declare one string.

Query one record in that object (any row) and assign that instance record formula field to that string and send that mail.

 

By this you can make sure like that value will keep to the value mail sent time.

 

Hope you understood.

Let me know your thoughts on this.