Now i understand i will get down vote or hate about this question but i can't find answer anywhere and maybe i am just using wrong words of search.
I need to make function that will email users when they posts expire on website and text from email will be stored in database and i've seen some others use variables like %username% to get proper username on user who will receive email, but i don't get it how to do it my self.
So example of email template would be this:
Dear %username%
Your post will expire in %expiration% days, if you wish to extend your post please login.
On your dashboard you can manage your posts.
Where %username%
will be $username
of each user who is author of that post.
So any suggestions how is this done, so i need to search and replace for specific tags like %username%
,
Have to mention that email template text will be stored in database field.