added more to plain text email template
changed spaces to tabs
refactored code