What I am wanting is to have a template message. eg. Welcome [name], your email is [email].
Then I have a form that will have two fields, 'name' and 'email' and on submit I search the body of the template message, find any [field] and replace it with its matching $_POST['field'].
I want it to find any template field and try replace it with a matching form field. Any ideas?