fix(index): fix text email and template-based emails

 * fix plain text emails
 * fix template-based emails which use custom data fields not from user object