Generate HTML email using swig templates