move parseplaceholders() function so that it can be used without loading sendemaillib.php
replace email and user attribute placeholders
Standardise the indentation
Merge pull request #37 from bramley/Mantis_3288

Mantis 3288 - placeholders in subscription messages