I'm trying to make a function in admin panel of my project, that will be sending e-mails with some dynamic parameters in format *|folder:function|*
. E.g.:
I write in text form
Hello, *|USER:FIRSTNAME|*.
You can *|START-LINKS:ACTIVATE|*activate*|END-LINKS|* your account.
Also you can *|START-LINKS:UNSUBSCRIBE|*unsubscribe*|END-LINKS|*.
and want to get
Hello, John.
You can <a href="http://example.com/?do=activate&user_id=useridfromdatabase&unique=4se5dr6ftygyuertcfvgbh">activate</a> your account.
Also you can <a href="http://example.com/?do=unsubscribe&user_id=useridfromdatabase&unique=45r6ftetdf3445656576yt">unsubscribe</a>
But I don't know how I can replace my tags with the data that I needed. Can anybody help me with that?