Forum Discussion
dhiraj_gophane
12 years agoLeader
$hostname is not working in email templates
Sign in to react to this post
HaidongG
12 years agoLithium 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.
Sign in to react to this post
- dhiraj_gophane12 years agoLeaderbut will it be useful in email template?
As very few context variables are used in email templateSign in to react to this post- ChiaraS12 years agoLithium Alumni (Retired)
Hi,
what email template are you testing with? I see examples of email templates that use the $hostname variable to build a community url (<img src="http://$hostname/html/assets/logo.gif")...
Or you can try ${emailUrls.getCommunityUrl("/")} as listed on this article: http://community.lithium.com/t5/Developers-Knowledge-Base/Email-template-context-objects/ta-p/75924
Sign in to react to this post