Forum Discussion

dhiraj_gophane's avatar
11 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?

 

  • ChiaraS's avatar
    ChiaraS
    Lithium Alumni (Retired)

    Hi,

     

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

      • HaidongG's avatar
        HaidongG
        Lithium Alumni (Retired)

        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.