Added email rendering functionality