Attributes for email templates rendered conditionally, more added

This fixes #368 @ChrisBr @hennevogel please review
Same here!