gensite: make email generation optional and add formatting support.