ASPX templates
Version 5.x > ASPX templates > E-mail Template Current domain View modes: 
User avatar
Member
Member
Real Adventure - 1/5/2011 11:06:43 AM
   
E-mail Template Current domain
Is there a simple way to add the current domain path to IMG src locations in a HTML version of an email template without putting the full URL as it will change between development and live.

e.g.

<img  src="{%SOMEVARIABLE%}/App_Themes/Site/assets/images/email/image.gif" width=”x” height=”x” />


Can I use CMSContext.GetCurrentSite().DomainName?

I need this for - custom forgot password email and register.

Thanks

User avatar
Member
Member
Real Adventure - 1/5/2011 11:43:06 AM
   
RE:E-mail Template Current domain
Hi,

Now seen how Macro type insert works so will try a test with {%domain%}