Forum Discussion

dhiraj_gophane's avatar
12 years ago

Get Host url in Email template

Hi,

How can I get host url (e.g. community.stage.lithium.com) in email template code.

I need to check the url and depending on url I need to change the text which will be sent to user in email.

how can I do this?

 

5 Replies

  • ChiaraS's avatar
    ChiaraS
    Lithium Alumni (Retired)
    12 years ago

    Hi,

     

    you should be able to use the $hostname variable for that...

  • $hostname is not working in email templates
  • HaidongG's avatar
    HaidongG
    Lithium Alumni (Retired)
    12 years ago

    Hi dhiraj_gophane ,

     

    I guess that you may have to log ticket to expose hostname in the community configuration file, by default, only "phase" (stage or prod) is explosed.

  • dhiraj_gophane's avatar
    dhiraj_gophane
    Leader
    12 years ago
    but will it be useful in email template?
    As very few context variables are used in email template