Forum Discussion

santosh_csc's avatar
8 years ago

How to do Text replace in email template?

Text key looks like this.

footer={communityTitle} sent this message to {Recipient}.

Now I have to replace {communityTitle} with the name of the community which is available in the context object.

#set ($footer1=$footer.replace("communityTitle",${community.title}))
${footer1}

Above piece of code is not working.

 

Any idea why?

How can I achieve this?