email template fixes
Merge branch 'working'