I have confirmation email that is sent after user registers. Now, I want admin to be able to customize this email, change content. etc (don’t want to hardcode it)
But problem here is with activation link that I would generate. I figured that I could save email content in database. The problem is with dynamic elements that I MUST add to email, like activation link, site name, etc.
Whats the best way to go with this, I suppose I would add so called ‘shortcodes’ like wordpress does. Whats the blueprint for this and how to integrate it?
You can solve it by using a simple template system based on search & replace; I’ve included a very basic one below with a short example. Hope it helps you 🙂