Email Notifications: Why the body of email notifications is coming as undefined?